Cross-spectral density (CSD) estimation via averaged windowed FFTs. More...


Go to the source code of this file.
Classes | |
| struct | UTILSLIB::CsdResult |
| Result of a Cross-Spectral Density computation. More... | |
| class | UTILSLIB::Csd |
| Cross-Spectral Density (CSD) estimator. More... | |
Namespaces | |
| namespace | UTILSLIB |
| Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms). | |
Cross-spectral density (CSD) estimation via averaged windowed FFTs.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The cross-spectral density matrix is the frequency-domain counterpart of the time-domain covariance and the central quantity behind coherence, phase-locking value and weighted phase-lag index connectivity measures. For each requested frequency the estimator computes the average outer product X(f) · X(f)ᴴ of the complex Fourier coefficients across windowed segments (and, optionally, across multitaper eigenspectra), yielding the (n_channels × n_channels) Hermitian CSD matrix per frequency bin.
Both Welch-style segmenting (overlapping Hann-windowed segments) and multitaper averaging (Slepian / DPSS tapers via Dpss) are supported to trade between spectral leakage, bias and variance. The output is compatible with the connectivity routines in CONNECTIVITYLIB.
Definition in file csd.h.