Skip to main content

coherence

Function coherence 

Source
pub fn coherence(
    x: &[f64],
    y: &[f64],
    fs: f64,
    window: &[f64],
    overlap: usize,
    detrend: Detrend,
) -> Result<(Vec<f64>, Vec<f64>), ErrorsJSL>
Expand description

The magnitude-squared coherence |P_xy|² / (P_xx P_yy) (SciPy’s coherence): 1 where y is a noise-free linear filtering of x, near 0 where they are unrelated.