filter (1)
Filtering of a finite length signal by a filter defined by its transfert function.
Prototype
Vector<T> filter(const FRat<Tc> &h, const Vector<T> &x)
Parameters
h | Transfert function (can be IIR or FIR) or coefficients vector (can only be FIR). |
x | Input signal to be filtered |
Returns
Output signal
Description
This function will only work for finite length signals. To filter streaming signals, better use one of the structure with context (see filter_fir(), filter_sois(), etc.).
For a FIR filter, this function computes the convolution product:
There will be as many output samples as input ones, by inserting virtual zeros before the beginning of the signal.