coffeine.power_features.compute_coffeine#

coffeine.power_features.compute_coffeine(inst: BaseRaw | BaseEpochs, frequencies: str | tuple | dict = 'ipeg', methods_params: dict | None = None) DataFrame#

Compute & spectral features as SPD matrices in a Data Frame.

Parameters:
instmne.io.Raw | mne.Epochs or list-like

The MNE instance containing raw signals from which to compute the features. If list-like, expected to contain MNE-Instances.

frequenciesstr | dict

The frequency parameter. Either the name of a collection supported by `get_frequency_bands`or a dictionary of frequency names and ranges.

methods_paramsdict

The methods paramaters used in the down-stream function for feature computation.

Returns:
C_dfpd.DataFrame

The coffeine DataFrame with columns filled with object arrays of covariances.