Module DynAIkonTrap.filtering.iir

The IIR filter architecture provided in this module can be used to filter/smooth "continuous" data signals in time. In particular, it is used in the motion filtering stage of the filtering pipeline.

Classes

class IIR2Filter (coeffs: numpy.ndarray)

Second order IIR filter stage

Args

coeffs : numpy.ndarray
SOS coefficients as returned by the utility functions from scipy

Methods

def filter(self, x: float) ‑> float

Perform time-based filtering based on the provided data sample

Args

x : float
A data sample

Returns

float
The filtered sample
def reset(self)
class IIRFilter (SOS: numpy.ndarray)

IIR filter constructed from IIR2Filters

Creates a chain of 2nd order filter instances of IIR2Filter

Args

SOS : numpy.ndarray
SOS coefficients as returned by the utility functions from scipy

Methods

def filter(self, x: float) ‑> float

Perform time-based filtering based on the provided data sample

Args

x : float
A data sample

Returns

float
The filtered sample
def reset(self)