Zero-phase filtering (bi-directionnal)

Namespace: dsp::filter

Prototype

Vector<typename Scalar> filtfilt(const Vector<Tc> &h, const Vector<T> &x)

Parameters

hRIF filter coefficients.
xInput signal

Returns

Output, filtered signal.

Description

This function can filter a finite length signal without any time delay, by using a FIR filter, which is applied twice: once normally, and once more time reversed: \[ y = \left((x \star h)_{-.} \star h\right)_{-.} \]

See also

filter()