bin_spikes¶
- bin_spikes(spike_times, dt, wdw_start, wdw_end)[source][source]¶
Function that puts spikes into bins
- Parameters:
spike_times (
an arrayofarrays) – an array of neurons. within each neuron’s array is an array containing all the spike times of that neurondt (
number (any format)) – size of time binswdw_start (
number (any format)) – the start time for putting spikes in binswdw_end (
number (any format)) – the end time for putting spikes in bins
- Returns:
neural_data – the number of spikes in each time bin for each neuron
- Return type:
a matrixof size"number of time bins"x"number of neurons"