spiketools.measures.collections.find_empty_bins¶
- spiketools.measures.collections.find_empty_bins(all_spikes, bins, time_range=None)[source]¶
Find empty time bins across a collection of recorded neurons.
- Parameters:
- all_spikeslist of 1d array
Spike times for a collection of neurons.
- binsfloat or 1d array
The binning to apply to the spiking data. If float, the time length of each bin. If array, precomputed bin definitions.
- time_rangelist of [float, float], optional
Time range, in seconds, to use to check for empty time bins. Only used if bins is a float.
- Returns:
- bin_emptiness1d array
Boolean array indicating which bins are empty across all neurons.