timescales.sim.sim_poisson
timescales.sim.sim_poisson¶
- timescales.sim.sim_poisson(n_seconds, fs, kernel, isi=None, mu=None, refract=None)[source]¶
Simulate a poisson distribution.
- Parameters
- n_secondsfloat
Length of the signal, in seconds.
- fsfloat
Sampling rate, in hz.
- kernel1d or 2d array
Synaptic kernel to convolve with Poisson.
- n_neuronsint, optional, default: 100
Number of neurons to simulate.
- isi1d array, optional, default: None
Interspike intervals to randomly sample from.
- mufloat, optional, default: None
Mean of the isi exponential distribuion. Only used if isi is None.
- refractint, optional, default: None
Minimum distances between spikes (i.e. refactory period).
- Returns
- poisson2d array, optional
Probablility of spiking at each sample.