Function iir¶
function iir(E1 &&, iir_params<T, filters>) dsp¶
template <size_t filters, typename T, typename E1>
KFR_FUNCTION expression_iir<filters, T, E1> iir(E1&& e1, iir_params<T, filters> params) Returns a template expression that applies a biquad filter cascade to the input.
| filters | Number of cascaded biquad sections. |
| T | Floating-point element type. |
| E1 | Type of the input expression. |
| e1 | Input expression. |
| params | Biquad coefficients (iir_params). |
Fully qualified name: kfr::iir(E1 &&, iir_params<T, filters>)
Declared at dsp/biquad.hpp:572
Function iir¶
function iir(E1 &&, const iir_params<T, tag_dynamic_vector> &) dsp¶
template <typename T, typename E1>
KFR_FUNCTION expression_handle<T, 1> iir(E1&& e1, const iir_params<T, tag_dynamic_vector>& params) Returns a template expression that applies a runtime-sized biquad cascade to the input.
The runtime section count is rounded up to the next power of two (bounded by maximum_biquad_count) and dispatched to the matching fixed-size specialization.
| T | Floating-point element type. |
| E1 | Type of the input expression. |
| e1 | Input expression. |
| params | Dynamic-size biquad coefficients. |
Fully qualified name: kfr::iir(E1 &&, const iir_params<T, tag_dynamic_vector> &)
Declared at dsp/biquad.hpp:589
Function iir¶
function iir(E1 &&, std::reference_wrapper<iir_state<T, filters>>) dsp¶
template <size_t filters, typename T, typename E1>
KFR_FUNCTION expression_iir<filters, T, E1, true> iir(E1&& e1,
std::reference_wrapper<iir_state<T, filters>> state) Returns a template expression that applies a biquad cascade using externally-owned state.
The state is held by reference (Stateless = true), allowing the caller to share or reset the filter state across multiple invocations.
| filters | Number of cascaded biquad sections. |
| T | Floating-point element type. |
| E1 | Type of the input expression. |
| state | Reference wrapper around an externally-owned iir_state. |
| e1 | Input expression. |
Fully qualified name: kfr::iir(E1 &&, std::reference_wrapper<iir_state<T, filters>>)
Declared at dsp/biquad.hpp:616
Function iir¶
function iir(E1 &&, const zpk &) dsp¶
template <typename T = fbase, typename E1>
KFR_FUNCTION expression_handle<T, 1> iir(E1&& e1, const zpk& params) Applies an IIR filter (in ZPK form) to an input signal expression.
| T | Element type of the filter coefficients (default fbase). |
| E1 | Input expression type. |
| e1 | Input signal expression. |
| params | IIR filter coefficients in ZPK form. |
| Expression handle applying the biquad filter. |
Fully qualified name: kfr::iir(E1 &&, const zpk &)
Declared at dsp/iir_design.hpp:340