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

All Samples(4)  |  Call(4)  |  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)

src/n/e/NeuroTools-0.2.0/test/test_stgen.py   NeuroTools(Download)
        t_stop = 1500.0 # milliseconds
 
        st = stg.inh_poisson_generator(numpy.array([rate]),numpy.array([t_start]),t_stop,array=True)
 
        assert st[-1] < t_stop
        # step in the rate
 
        st = stg.inh_poisson_generator(numpy.array([100.0,200.0]),numpy.array([500.0,1500.0]),2500.0,array=True)
 
        n1 = len(st[st<1500.0])