setIntervals-methods: Set time intervals to limit the period used in the analysis

Description Usage Arguments Value

Description

Only the data within the intervals are used for analysis. For example with interval 0-20000, a spike at time 0 or 20000 is not included. Spikes between time 0 and 20000 are used. These intervals are used in SpikeTrain methods and also in methods of other classes (SaptialProperties2d, SpatialProperties1d, HeadDirection, etc.). By default, the intervals are set from 0 to time point of the last recorded spike.

Usage

1
2
3
4
setIntervals(st, s, e)

## S4 method for signature 'SpikeTrain'
setIntervals(st, s, e)

Arguments

st

SpikeTrain object

s

Vector or matrix. If a matrix, should have 2 columns (beginning and end of intervals). If a vector, beginning of intervals.

e

Vector, end of the intervals. If s is a matrix, e is not used.

Value

a SpikeTrain object with the intervals set.


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.