signal_filter
SignalFilter(features, filter_type, filter_frequency, *, order=5)
Bases: Transform
Applies a Butterworth filter to time series features.
Applies a Butterworth lowpass or highpass filter to time series features. For this transform to work, the time series must already have a uniform sampling rate. Use a `Resample' transform to uniformly sample the points of a time series.
Initializes the Filter transform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
features
|
Iterable[str]
|
Features that shall be filtered. |
required |
filter_type
|
SignalFilterType
|
Type of the filter to apply. Valid options are "lowpass" and "highpass". |
required |
filter_frequency
|
float
|
Characteristic frequency of the filter in Hz. For high- and lowpass this is the cutoff frequency. |
required |
order
|
int
|
Order of the Butterworth filter to uses. Defaults to 5. |
5
|
Source code in src/flowcean/transforms/signal_filter.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|