Skip to content

function fir_lowpass(univector<T, Tag> &, std::type_identity_t<T>, const expression_handle<T> &, bool) fir

template <typename T, univector_tag Tag>
KFR_INTRINSIC void fir_lowpass(univector<T, Tag>& taps, std::type_identity_t<T> cutoff,
                               const expression_handle<T>& window, bool normalize = true)

Calculates coefficients for the low-pass FIR filter

Parameters
taps array where computed coefficients are stored
cutoff Normalized frequency (frequency_Hz / samplerate_Hz)
window pointer to a window function
normalize true for normalized coefficients

Defined at dsp/fir_design.hpp:132