physioex.data.NotchFilter#
- class physioex.data.NotchFilter(freq=50.0, quality=30.0)[source]#
Bases:
PreprocessingStepIIR notch filter (powerline removal).
Uses second-order sections (SOS) for numerical stability on long signals.
If the notch frequency is out of range (freq >= Nyquist), returns the unfiltered signal with a warning instead of raising an error.
Methods
__init__([freq, quality])compile(fs_in)Precompute any expensive state and return a callable specialized for fs_in.
spec()Return canonical, hashable text repr.