count_ns: Count number of spikes within evenly spaced time...

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

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

1
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 documentation built on May 1, 2019, 7:32 p.m.