pub fn csd(
x: &[f64],
y: &[f64],
fs: f64,
window: &[f64],
overlap: usize,
detrend: Detrend,
scaling: SpectralScaling,
) -> Result<CrossSpectrum, ErrorsJSL>Expand description
The cross spectral density P_xy(f) by Welch’s method (SciPy’s csd): segments of
window.len() samples overlapping by overlap, detrended and windowed; the average of
conj(X) Y, scaled as welch and doubled except at
DC and an even-length Nyquist bin.