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/inh_gamma_psth.py   NeuroTools(Download)
        print "%d" % i,
        sys.stdout.flush()
    st = stg.inh_gamma_generator(a,b,t,1000.0,array=True)
    psth[1:]+=numpy.histogram(st,t)[0]
 

src/n/e/NeuroTools-0.2.0/test/test_stgen.py   NeuroTools(Download)
        stg = stgen.StGen()
 
        st = stg.inh_gamma_generator(array([3.0,3.0]),array([1.0/100.0/3.0,1.0/200.0/3.0]),array([500.0,1500.0]),2500.0,array=True)
 
        assert(type(st)==numpy.ndarray)
 
        st = stg.inh_gamma_generator(array([3.0,3.0]),array([1.0/100.0/3.0,1.0/200.0/3.0]),array([500.0,1500.0]),2500.0,array=False)
        # gamma step rate= 100Hz -> 200Hz, a = 3.0
 
        st = stg.inh_gamma_generator(array([3.0,3.0]),array([1.0/100.0/3.0,1.0/200.0/3.0]),array([500.0,1500.0]),2500.0,array=True)
 
        assert(type(st)==numpy.ndarray)