timescales.sim.sim_ou

Contents

timescales.sim.sim_ou#

timescales.sim.sim_ou(n_seconds, fs, tau, mean=0.0, variance=1.0)[source]#

Simulate spikes as an Ornstein-Uhlenbeck process.

Parameters:
n_secondsfloat

Length of the signal, in seconds.

fsfloat

Sampling rate, in hz.

taufloat

Timescale, in seconds.

Returns:
sig1d or 2d array

Signal containing timescale of interest.