Skip to content

Function fir_bandpass

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

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

Calculates coefficients for the band-pass FIR filter using the windowed-sinc method.

Parameters
taps array where computed coefficients are stored. Size determines the filter order (size-1).
frequency1 Normalized lower band edge (frequency_Hz / samplerate_Hz), where 0.5 corresponds to Nyquist.
frequency2 Normalized upper band edge (frequency_Hz / samplerate_Hz), where 0.5 corresponds to Nyquist.
window handle to a window function applied to the sinc impulse response.
normalize when true, scales taps so the DC gain is unity.

Fully qualified name: kfr::fir_bandpass(univector<T, Tag> &, std::type_identity_t<T>, std::type_identity_t<T>, const expression_handle<T> &, bool)

Function fir_bandpass

function fir_bandpass(const univector_ref<T> &, std::type_identity_t<T>, std::type_identity_t<T>, const expression_handle<T> &, bool) dsp

template <typename T>
KFR_INTRINSIC void fir_bandpass(const univector_ref<T>& taps, std::type_identity_t<T> frequency1,
                                std::type_identity_t<T> frequency2, const expression_handle<T>& window,
                                bool normalize = true)

Calculates coefficients for the band-pass FIR filter using the windowed-sinc method.

Parameters
taps array where computed coefficients are stored. Size determines the filter order (size-1).
frequency1 Normalized lower band edge (frequency_Hz / samplerate_Hz), where 0.5 corresponds to Nyquist.
frequency2 Normalized upper band edge (frequency_Hz / samplerate_Hz), where 0.5 corresponds to Nyquist.
window handle to a window function applied to the sinc impulse response.
normalize when true, scales taps so the DC gain is unity.

Fully qualified name: kfr::fir_bandpass(const univector_ref<T> &, std::type_identity_t<T>, std::type_identity_t<T>, const expression_handle<T> &, bool)

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