sdr.LeakyIntegrator(alpha: float, streaming: bool = False)

Creates a leaky integrator IIR filter.

Parameters:
alpha: float

The leaky factor \(\alpha\). An FIR moving average with length \(L\) is approximated when \(\alpha = 1 - 2/L\).

streaming: bool = False

Indicates whether to use streaming mode. In streaming mode, previous inputs and outputs are preserved between calls to __call__().

Examples

See the IIR filters example.