BinnedSpikeTrain (conversion)

This module allows to convert standard data representations (e.g., a spike train stored as Neo SpikeTrain object) into other representations useful to perform calculations on the data. An example is the representation of a spike train as a sequence of 0-1 values (binned spike train).

BinnedSpikeTrain(**kwargs) Class which calculates a binned spike train and provides methods to transform the binned spike train to a boolean matrix or a matrix with counted time points.
binarize(spiketrain[, sampling_rate, …]) Return an array indicating if spikes occurred at individual time points.