Update 'pointprocesses/lecture/isihexamples.py'

This commit is contained in:
jgrewe 2018-11-07 09:37:25 +01:00
parent 8b59bf3985
commit 46a0f3ed6a

View File

@ -76,7 +76,7 @@ rng = np.random.RandomState(54637281)
time = np.arange(0.0, duration, dt)
x = np.zeros(time.shape)+rate
n = rng.randn(len(time))*drate*tau/np.sqrt(dt)+rate
for k in np.arange(1,len(x)) :
for k in range(1,len(x)) :
x[k] = x[k-1] + (n[k]-x[k-1])*dt/tau
x[x<0.0] = 0.0