Curve Length
Description
This module implements the Curve Length feature extractor, which measures the cumulative amplitude changes in EEG signals over time. This feature is useful for capturing the complexity and variability of brain activity, making it suitable for tasks like motor imagery classification.
The Curve Length is calculated as the sum of the absolute differences between consecutive samples in the signal.
Class
- class bciflow.modules.fe.curvelength.curvelength(flating: bool = False)[source]
Bases:
object
- flating
If True, the output data is returned in a flattened format (default is False).
- Type:
bool
- fit(eegdata)[source]
This method does nothing, as the Curve Length feature extractor does not require training.
- Parameters:
eegdata (dict) – The input data.
- Return type:
self