Log Power
Description
This module implements the Log Power feature extractor, which computes the logarithm of the power of EEG signals. This feature is commonly used in BCI applications to characterize the energy of brain activity in specific frequency bands.
This function computes the Log Power of the input EEG data. The Log Power is calculated as the logarithm of the mean squared amplitude of the signal. The result is stored in the dictionary under the key ‘X’.
Function
- bciflow.modules.fe.logpower.logpower(eegdata: dict, flating: bool = False) dict [source]
- Parameters:
eegdata (dict) – The input data, where the key ‘X’ holds the raw signal.
flating (bool, optional) – If True, the output data is returned in a flattened format (default is False).
- Returns:
output – The transformed data, with the Log Power stored under the key ‘X’.
- Return type:
dict