pyriemann.geometry.covariance.cospectrum

pyriemann.geometry.covariance.cospectrum(*args, **kwargs)

Warning

DEPRECATED: cospectrum() is deprecated and will be removed in 0.14.0; please use cross_spectrum() and take the real part of first output.

Compute co-spectral matrices, the real part of cross-spectra.

Parameters:
Xndarray, shape (…, n_channels, n_times)

Multi-channel time-series, real-valued.

windowint, default=128

Length of the FFT window used for spectral estimation.

overlapfloat, default=0.75

Percentage of overlap between windows.

fminfloat | None, default=None

Minimal frequency to be returned.

fmaxfloat | None, default=None

Maximal frequency to be returned.

fsfloat | None, default=None

Sampling frequency of the time-series.

Returns:
Sndarray, shape (…, n_channels, n_channels, n_freqs)

Co-spectral matrices, for each frequency bin.

freqsndarray, shape (n_freqs,)

Frequencies associated to cospectra.