Skip to content

Function to_sos

function to_sos(const zpk &) dsp

template <typename T = double>
KFR_FUNCTION iir_params<T> to_sos(const zpk& filter)

Converts a zero-pole-gain filter to second-order sections (SOS) form.

Pairs poles and zeros into real-valued biquad sections using a pole-matching algorithm that pairs each pole with its nearest zero. Real poles are matched with real zeros; complex poles are paired with their conjugates and matched with complex zero pairs.Compatible with scipy.signal.zpk2sos.

Template parameters
T Floating-point type for the coefficients (default double).
Parameters
filter Filter in ZPK form.
Returns
IIR parameters as a sequence of biquad sections.

Fully qualified name: kfr::to_sos(const zpk &)

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