filter_fir

Direct implementation of a FIR filter.

Namespace: dsp::filter

Prototype

sptr<FilterGen<T>> filter_fir(const Vector<Tc> &h)

Parameters

hVector with filter coefficients.

Returns

Filter T -> T

Description

Implemented with the convolution equation: \[ y_n = \sum h_k x_{n-k} \]

Note
If the number of coefficients is important, better usr the filter_fir_fft(), which may be more efficient (filtering in the frequency domain).

See also

filter_fir_fft()