Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

count_ns

Count number of spikes within evenly spaced time intervals(bins) from input spike trains.


Description

Given a list of spike trains, this function creates evenly spaced bins and returns number of spikes from all spike trains for each bins.

Usage

count_ns(spikes, beg, end, wid, nbins)

Arguments

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.

Value

Return a vector of counts of spikes from all spike trains for user-defined, evenly spaced bins.

Author(s)

Stephen Eglen


meaRtools

Micro-Electro Array (MEA) Analysis

v1.0.4
GPL (>= 3)
Authors
Quanli Wang [aut, ctb], Sahar Gelfman [aut, ctb, cre], Diana Hall [aut, ctb], Ryan Dhindsa [aut, ctb], Matt Halvorsen [aut, ctb], Ellese Cotterill [aut, ctb], Tom Edinburgh [aut, ctb], Stephen J. Eglen [aut, ctb, ths]
Initial release
2018-7-1

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.