Update 'pointprocesses/lecture/isihexamples.py'
This commit is contained in:
parent
8b59bf3985
commit
46a0f3ed6a
@ -76,7 +76,7 @@ rng = np.random.RandomState(54637281)
|
|||||||
time = np.arange(0.0, duration, dt)
|
time = np.arange(0.0, duration, dt)
|
||||||
x = np.zeros(time.shape)+rate
|
x = np.zeros(time.shape)+rate
|
||||||
n = rng.randn(len(time))*drate*tau/np.sqrt(dt)+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[k] = x[k-1] + (n[k]-x[k-1])*dt/tau
|
||||||
x[x<0.0] = 0.0
|
x[x<0.0] = 0.0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user