coherencypt: Multi-taper coherency - point process times

Description Usage Arguments Value

View source: R/coherencypt.R

Description

Multi-taper coherency - point process times

Usage

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
)

Arguments

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

Value

S1 the estimated spectrum for data1

S2 the estimated spectrum for data2

C12 the coherency

f the frequencies


parsifal9/PPspectra documentation built on Dec. 31, 2020, 1:14 a.m.