Skip to contents

Delegates to signal::coherence when present; otherwise builds a Welch-style estimator from morie_dsp_psd_welch and a parallel CSD.

Usage

morie_dsp_coherence(x, y, fs = 1, nperseg = 256L)

Arguments

x

Numeric vector.

y

Numeric vector.

fs

Sampling frequency (Hz). Default 1.

nperseg

Segment length. Default 256.

Value

List with freqs and coh (magnitude squared coherence).

References

Rangayyan & Krishnan (2015), Ch. 6, sec. 6.9.