spiketools.measures.spikes.compute_fano_factor¶
- spiketools.measures.spikes.compute_fano_factor(spike_train)[source]¶
Compute the fano factor of a spike train.
- Parameters:
- spike_train1d array
Spike train.
- Returns:
- fanofloat
Fano factor.
Examples
Compute the fano factor from a spike train:
>>> spike_train = [0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0] >>> compute_fano_factor(spike_train) 0.5