coherence | R Documentation |
Based on: http://en.wikipedia.org/wiki/Wiener-Khinchin_theorem; Press et al. (1989) 'Numerical Recipes in Pascal', Cambridge, section 12.8 'Maximum Entropy (All Poles) Method'; von Storch & Zwiers (1999) 'Statistical Analysis in climate Research', Cambridge, section 11.4, eq 11.67, p. 235;
coherence(x, y, dt = 1, M = NULL, plot = TRUE)
x |
A vector (time series). |
y |
A vector (time series). |
dt |
time incremet - for plotting. |
M |
Window length - default= half series length |
plot |
Flag: plot the diagnostics. |
A test with two identical series the original equation (eq 11.67) from von
Storch & Zwiers (1999) gave uniform values: 1. The denominator was changed
from ( \Gamma_{xx} * \Gamma_{yy} )
to (
\sqrt{\Gamma_{xx} * \Gamma_{yy} )}
.
A complex vector .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.