Compute STTC for a pair of spike trains
Compute STTC for a pair of spike trains
sttc(a, b, dt = 0.05, rec_time = NULL)
a |
first spike train |
b |
second spike train |
dt |
bin size in seconds |
rec_time |
2-element vector: start and end time |
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.
STTC a scalar bounded between -1 and +1.
Stephen J Eglen
a = c(1, 2, 3, 4, 5) b = a+0.01 c = a+0.5 sttc(a, b)==1 sttc(a, c)==0
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.