pyriemann.utils.covariance.cospectrum¶
- pyriemann.utils.covariance.cospectrum(X, window=128, overlap=0.75, fmin=None, fmax=None, fs=None)¶
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.