Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/n/e/NeuroTools-0.2.0/examples/stgen/shotnoise_step.py   NeuroTools(Download)
trials = 1000
st = stg.inh_poisson_generator(rate, t, 300.0)
g,tsn = stgen.shotnoise_fromspikes(st,q,tau,dt=0.1,t_start=0.0,t_stop=300.0,array=True)
for i in range(trials-1):
    st = stg.inh_poisson_generator(rate, t, 300.0)
    g_tmp,tmp = stgen.shotnoise_fromspikes(st,q,tau,dt=0.1,t_start=0.0,t_stop=300.0,array=True)

src/n/e/NeuroTools-0.2.0/examples/sfn2008/sfn_example_stgen.py   NeuroTools(Download)
 
#generate shot noise from st1
st1_shot = stgen.shotnoise_fromspikes(st1, 
                                      q = 1.0, 
                                      tau = 10., 

src/n/e/NeuroTools-0.2.0/test/test_stgen.py   NeuroTools(Download)
        st = stg.poisson_generator(10.0,0.0,1000.0)
 
        ge = stgen.shotnoise_fromspikes(st,2.0,10.0,dt=0.1)
 
        assert ge.t_start==0.0
        assert ge.t_stop==1000.0
 
        st = stg.poisson_generator(10.0,0.0,1000.0)
        ge = stgen.shotnoise_fromspikes(st,2.0,10.0,dt=0.1,t_start=500.0,t_stop=1500.0)