![]() |
(4.1) |
In ComLinC, the IIR filter is implemented according to eq. 4.3.
To use the IIR filter, call the function cl_filter_iir()
. The function prototype looks like the following:
gsl_vector* cl_filter_iir( gsl_vector* b, gsl_vector* a, gsl_vector* x );
b,a
are the filter coefficients defined in eq. 4.2. x
is the input to the filter. The output of cl_filter_iir
is a double vector of the same length as the input vector.
Kefei Lu 2007-12-03