template<class T1, class T2, class T3>
class sp::IIR_filt< T1, T2, T3 >
Implements IIR/ARMA filter functions as
\[ a_0y(n) = b_0x(n)+b_1x(n-1)+...+b_{M-1}x(n-(M-1))-a_1y(n-1)-...-a_{M-1}y(n-(M-1))\]
where M is the number of taps in the FIR filter part and M is the number of taps in the IIR filter. The filter order is (M-1,M-1)
- Examples:
- fir_iir.cpp.
Definition at line 477 of file filter.h.
template<class T1, class T2, class T3>
void sp::IIR_filt< T1, T2, T3 >::set_coeffs |
( |
const arma::Col< T2 > & |
_b, |
|
|
const arma::Col< T2 > & |
_a |
|
) |
| |
|
inline |
Sets coefficients in IIR filter. The internal state and pointers are cleared.
- Parameters
-
_b | Filter coefficients \( [b_0 ..b_M] \) |
_a | Filter coefficients \( [a_0 ..a_N] \) |
Definition at line 516 of file filter.h.
References sp::FIR_filt< T1, T2, T3 >::clear().
Referenced by main().