translation of point processes chapter and some tiny fixes elsewhere #1

Merged
jgrewe merged 19 commits from translation into master 2018-11-07 08:38:40 +00:00
Showing only changes of commit 46a0f3ed6a - Show all commits

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