elephant.statistics.isi¶
-
elephant.statistics.
isi
(spiketrain, axis=- 1)[source]¶ Return an array containing the inter-spike intervals of the spike train.
Accepts a neo.SpikeTrain, a pq.Quantity array, or a plain np.ndarray. If either a neo.SpikeTrain or pq.Quantity is provided, the return value will be pq.Quantity, otherwise np.ndarray. The units of pq.Quantity will be the same as spiketrain.
Parameters: - spiketrainneo.SpikeTrain or pq.Quantity or np.ndarray
The spike times.
- axisint, optional
The axis along which the difference is taken. Default: the last axis.
Returns: - intervalsnp.ndarray or pq.Quantity
The inter-spike intervals of the spiketrain.