cogpy.spectral
Spectral analysis: multitaper PSD, spectrograms, band power, spectral features, coherence, and whitening. All functions follow the PSD-first convention — compute the PSD once, then derive features from it.
Tutorial: Spectral Analysis | Design: Spectral Conventions
Submodules
Bivariate spectral measures: cross-spectrum, coherence, PLV. |
|
Spectral features derived from pre-computed PSD estimates. |
|
Multitaper spectral estimation utilities. |
|
Post-processing helpers for spectrogram-like arrays. |
|
PSD estimators with unified return convention. |
|
PSD utilities for TensorScope (v2.8.0). |
|
Spectral transforms with xarray interface. |
|
Whitening utilities for time series. |
Spectral analysis: PSD, spectrograms, coherence, and multitaper methods.
Submodules
psd : Power spectral density estimation (Welch, periodogram). multitaper : Multitaper spectral estimation and F-tests. specx : Short-time spectrograms and time–frequency representations. bivariate : Coherence, phase-locking value, and cross-spectral measures. features : Band-power extraction, spectral edge, and peak frequency. whitening : Spectral flattening and 1/f removal. process_spectrogram : Post-processing utilities for spectrogram arrays.