spiketools.measures.spikes.compute_isis¶
- spiketools.measures.spikes.compute_isis(spikes)[source]¶
Compute inter-spike intervals.
- Parameters:
- spikes1d array
Spike times, in seconds.
- Returns:
- isis1d array
Distribution of interspike intervals.
Examples
Compute inter-spike intervals from spike times:
>>> spikes = np.array([0.5, 0.8, 1.4, 2, 2.2, 2.9]) >>> compute_isis(spikes) array([0.3, 0.6, 0.6, 0.2, 0.7])