Spike train generation¶
Functions to generate/extract spike trains from analog signals, or to generate random spike trains.
Extract spike times from time series¶
|
Return the peak times for all events that cross threshold and the waveforms. |
|
Returns the times when the analog signal crosses a threshold. |
|
Return the peak times for all events that cross threshold. |
Random spike train processes¶
|
Generates spike trains whose spikes are realizations of a stationary Poisson process with the given rate, starting at time t_start and stopping at time t_stop (Deger et al., 2012). |
|
Generates spike trains whose spikes are realizations of a stationary Gamma process with the given rate and shape_factor starting at time t_start and stopping at time t_stop. |
|
Generates spike trains whose spikes are realizations of a stationary LogNormal process with the given rate and sigma starting at time t_start and stopping at time t_stop. |
|
Generates spike trains whose spikes are realizations of a stationary Gamma process with the given rate and cv starting at time t_start and stopping at time t_stop. |
|
Generates spike trains whose spikes are realizations of a non-stationary Poisson process with the given rate-signal. |
|
Generates spike trains whose spikes are realizations of a non-stationary Gamma process with the given rate-signal. |
Coincident spike times generation¶
|
Generates a multidimensional Poisson SIP (single interaction process) plus independent Poisson processes (Kuhn et al., 2003). |
|
Generate a Compound Poisson Process (CPP; see (Staude et al., 2010)) with a given amplitude_distribution \(A\) and stationary marginal rates rate. |
Some functions are based on the NeuroTools stgen module, which was mostly written by Eilif Muller, or from the NeuroTools signals.analogs module.
References¶
Moritz Deger, Moritz Helias, Clemens Boucsein, and Stefan Rotter. Statistical properties of superimposed stationary spike trains. Journal of Computational Neuroscience, 32(3):443–463, 2012.