coffeine.covariance_transformers.Diag#
- class coffeine.covariance_transformers.Diag(return_data_frame=True)#
Vectorize SPD matrix by extracting diagonal.
This is equivalent of the M/EEG power spectrum in a given frequency bin.
- Parameters:
- metricstr, default=’riemann’
The Riemannian metric to use. See PyRiemann documentation for details and valid choices.
- return_data_framebool, default=True
Returning the result in a pandas data frame or not.