frate_counts: Estimate population firing rate using fixed-width time bins.

Description Usage Arguments Details Value Author(s)

View source: R/RcppExports.R

Description

Estimate the population firing rate, averaging over all spikes.

Usage

1
frate_counts(spikes, beg, end, wid, nbins)

Arguments

spikes

List of simultaneously recorded spike trains

beg

Start of the recording, in seconds.

end

The start time of the last bin, in seconds.

wid

The duration of each bin

nbins

The number of bins to generate.

Details

We compute the array-wide average activity for a list of spike trains. The duration of the recording is given in seconds by BEG and END. Time is divided up into NBINS bins, each of duration WID. Each spike is then placed in the appropriate bin and then we return the average count in each bin.

Value

The population firing rate (in Hz) for each bin.

Author(s)

Stephen Eglen


meaRtools documentation built on May 1, 2019, 7:32 p.m.