Skip to content

Function iir_bandstop

function iir_bandstop(const zpk &, double, double, double) dsp

zpk iir_bandstop(const zpk& filter, double lowfreq, double highfreq, double fs = 2.0)

Designs a digital bandstop (notch) IIR filter and returns ZPK coefficients.

Applies frequency pre-warping, lowpass-to-bandstop analog transformation, and bilinear transform.

Parameters
filter Analog lowpass prototype (butterworth, chebyshev1, chebyshev2, bessel, or elliptic).
lowfreq Lower cutoff frequency in Hz. If fs is omitted (left at its default of 2.0), frequencies are interpreted as normalized to Nyquist, so the valid range is 0..1.
highfreq Upper cutoff frequency in Hz. See note on lowfreq.
fs Sampling frequency in Hz (default 2.0, i.e. Nyquist = 1 Hz).
Returns
Digital bandstop filter in ZPK form.

Fully qualified name: kfr::iir_bandstop(const zpk &, double, double, double)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.