Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sttc

Compute STTC for a pair of spike trains


Description

Compute STTC for a pair of spike trains

Usage

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

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

meaRtools

Micro-Electro Array (MEA) Analysis

v1.0.4
GPL (>= 3)
Authors
Quanli Wang [aut, ctb], Sahar Gelfman [aut, ctb, cre], Diana Hall [aut, ctb], Ryan Dhindsa [aut, ctb], Matt Halvorsen [aut, ctb], Ellese Cotterill [aut, ctb], Tom Edinburgh [aut, ctb], Stephen J. Eglen [aut, ctb, ths]
Initial release
2018-7-1

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.