bin_spikes

bin_spikes(spike_times, dt, wdw_start, wdw_end)[source][source]

Function that puts spikes into bins

Parameters:
  • spike_times (an array of arrays) – an array of neurons. within each neuron’s array is an array containing all the spike times of that neuron

  • dt (number (any format)) – size of time bins

  • wdw_start (number (any format)) – the start time for putting spikes in bins

  • wdw_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 matrix of size "number of time bins" x "number of neurons"