sttc: Compute STTC for a pair of spike trains

Description Usage Arguments Details Value Author(s) Examples

View source: R/sttc.R

Description

Compute STTC for a pair of spike trains

Usage

1
sttc(a, b, dt = 0.05, rec_time = NULL)

Arguments

a

first spike train

b

second spike train

dt

bin size in seconds

rec_time

2-element vector: start and end time

Details

The Spike Time Tiling correlation (STTC) is computed for a pair of spike trains. The method is defined in Cutts and Eglen (2014). We assume that the spike trains are ordered, smallest-time first.

Value

STTC a scalar bounded between -1 and +1.

Author(s)

Stephen J Eglen

Examples

1
2
3
4
5
a = c(1, 2, 3, 4, 5)
b = a+0.01
c = a+0.5
sttc(a, b)==1
sttc(a, c)==0

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