isi: isi

Description Usage Arguments Value Author(s) Examples

View source: R/spikes.R

Description

calculates the isi (inter-spike interval) (s) between sucessive spikes in a input spike train.

Usage

1
isi(train)

Arguments

train

spike train: a set of non-decreasing timestamps (s)

Value

a vector of isis: first entry is ISI between first & second spike in input spike train and so forth. Total length is 1 less than input spike train.

Author(s)

Diana Hall

Examples

1
2
3
4
data("S") # load data
b<-isi(S$spikes[[1]])
S$spikes[[1]][1:4]
b[1:3]

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