Skip to content

function dcremove(E1 &&, double, double) biquad

template <typename E1, typename T = flt_type<expression_value_type<E1>>>
KFR_INTRINSIC expression_iir<1, T, E1> dcremove(E1&& e1, double cutoff_hz, double fs_hz)

Applies a DC removal filter to the given input expression.

This function designs a 2nd order Butterworth high-pass filter to remove the DC component from the input signal. The filter is implemented as a single biquad section with a cutoff frequency specified by cutoff_hz.

Template parameters
T The data type used for the filter coefficients.
E1 The type of the input expression.
Parameters
e1 The input expression to be filtered.
cutoff_hz The cutoff frequency of the high-pass filter in Hz.
fs_hz The sampling frequency of the input signal in Hz.
Returns
An expression representing the filtered signal.

Defined at dsp/dcremove.hpp:57