Count number of spikes within evenly spaced time intervals(bins) from input spike trains.
Given a list of spike trains, this function creates evenly spaced bins and returns number of spikes from all spike trains for each bins.
count_ns(spikes, beg, end, wid, nbins)
spikes |
The input list of spike trains. |
beg |
Start time of recording in seconds. |
end |
End time of recording in seconds. |
wid |
Bin width in seconds. |
nbins |
Number of evenly spaced bins for given time interval. |
Return a vector of counts of spikes from all spike trains for user-defined, evenly spaced bins.
Stephen Eglen
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.