Skip to content

Commit 346c9b6

Browse files
committed
Update currents.py
1 parent a08ad48 commit 346c9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/_src/inputs/currents.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def ou_process(mean, sigma, tau, duration, dt=None, n=1, t_start=0., t_end=None,
306306
x = bm.Variable(jnp.ones(n) * mean)
307307

308308
def _f(t):
309-
x.value = x + dt * ((mean - x) / tau) + sigma * dt_sqrt * rng.rand(n)
309+
x.value = x + dt * ((mean - x) / tau) + sigma * dt_sqrt * rng.randn(n)
310310
return x.value
311311

312312
noises = bm.for_loop(_f, jnp.arange(t_start, t_end, dt))

0 commit comments

Comments
 (0)