Description Usage Arguments Value
Multi-taper coherency - point process times
1 2 3 4 5 6 7 8 9 | coherencypt(
data1,
data2,
Fs = 3000,
fpass = c(0, 1500),
pad = 0,
nw = 50,
k = 2 * nw - 1
)
|
data1 |
array of spike times |
data2 |
array of spike times |
Fs |
sampling frequency |
fpass |
(fmin, fmax), frequency band to be used in the calculation. Defaults to (0, Fs/2) |
pad |
(padding factor for the FFT). Not currently used, i.e. no padding is done |
nw |
A positive double-precision number, the time-bandwidth paramter for the tapers |
k |
A positive integer, the number of tapers, defaults to 2*nw-1 |
fscorr |
finite size corrections – not implemented yet |
S1 the estimated spectrum for data1
S2 the estimated spectrum for data2
C12 the coherency
f the frequencies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.