ezmsg.sigproc.adaptive_lattice_notch#
Classes
- class AdaptiveLatticeNotchFilterSettings(gamma=0.995, mu=0.99, eta=0.99, axis='time', init_notch_freq=None, chunkwise=False)[source]#
Bases:
SettingsSettings for the Adaptive Lattice Notch Filter.
- Parameters:
- class AdaptiveLatticeNotchFilterState[source]#
Bases:
objectState for the Adaptive Lattice Notch Filter.
- s_history: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None#
Historical s values for the adaptive filter.
- p: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None#
Accumulated product for reflection coefficient update
- class AdaptiveLatticeNotchFilterTransformer(*args, **kwargs)[source]#
Bases:
BaseStatefulTransformer[AdaptiveLatticeNotchFilterSettings,AxisArray,AxisArray,AdaptiveLatticeNotchFilterState]Adaptive Lattice Notch Filter implementation as a stateful transformer.
https://biomedical-engineering-online.biomedcentral.com/articles/10.1186/1475-925X-13-170
The filter automatically tracks and removes frequency components from the input signal. It outputs the estimated frequency (in Hz) and the filtered sample.
- class AdaptiveLatticeNotchFilterSettings(gamma=0.995, mu=0.99, eta=0.99, axis='time', init_notch_freq=None, chunkwise=False)[source]#
Bases:
SettingsSettings for the Adaptive Lattice Notch Filter.
- Parameters:
- class AdaptiveLatticeNotchFilterState[source]#
Bases:
objectState for the Adaptive Lattice Notch Filter.
- s_history: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None#
Historical s values for the adaptive filter.
- p: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None#
Accumulated product for reflection coefficient update
- class AdaptiveLatticeNotchFilterTransformer(*args, **kwargs)[source]#
Bases:
BaseStatefulTransformer[AdaptiveLatticeNotchFilterSettings,AxisArray,AxisArray,AdaptiveLatticeNotchFilterState]Adaptive Lattice Notch Filter implementation as a stateful transformer.
https://biomedical-engineering-online.biomedcentral.com/articles/10.1186/1475-925X-13-170
The filter automatically tracks and removes frequency components from the input signal. It outputs the estimated frequency (in Hz) and the filtered sample.