Skip to content

iir


zpk class

zpk

iir_lowpass function (generic::iir_lowpass)

zpk iir_lowpass(const zpk &filter, double frequency,
                double fs = 2.0)

Calculates zero-pole-gain coefficients for the low-pass IIR filter
Param filter Filter type: chebyshev1, chebyshev2, bessel, butterworth
Param frequency Cutoff frequency (Hz)
Param fs Sampling frequency (Hz)
Returns The resulting zpk filter


iir_highpass function (generic::iir_highpass)

zpk iir_highpass(const zpk &filter, double frequency,
                 double fs = 2.0)

Calculates zero-pole-gain coefficients for the high-pass IIR filter
Param filter Filter type: chebyshev1, chebyshev2, bessel, butterworth
Param frequency Cutoff frequency (Hz)
Param fs Sampling frequency (Hz)
Returns The resulting zpk filter


iir_bandpass function (generic::iir_bandpass)

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

Calculates zero-pole-gain coefficients for the band-pass IIR filter
Param filter Filter type: chebyshev1, chebyshev2, bessel, butterworth
Param lowfreq Low cutoff frequency (Hz)
Param lowfreq High cutoff frequency (Hz)
Param fs Sampling frequency (Hz)
Returns The resulting zpk filter


iir_bandstop function (generic::iir_bandstop)

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

Calculates zero-pole-gain coefficients for the band-stop IIR filter
Param filter Filter type: chebyshev1, chebyshev2, bessel, butterworth
Param lowfreq Low cutoff frequency (Hz)
Param lowfreq High cutoff frequency (Hz)
Param fs Sampling frequency (Hz)
Returns The resulting zpk filter


iir function (generic::iir)

template <typename T = fbase, typename E1>
expression_handle<T, 1> iir(E1 &&e1, const zpk &params)

Returns template expressions that applies biquad filter to the input.
Param e1 Input expression
Param params IIR filter in ZPK form
Details This overload converts ZPK to biquad coefficients using to_sos function at every call


Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/