Documentation
|
|
C++ interface for Infinite Impulse Response. More...
| array | iir (int nb, const float *h_b, int na, const float *h_a, const array &x) |
| array | iir (const array &b, const array &a, const array &x) |
C++ interface for Infinite Impulse Response.
Apply an infinite impulse response filter (transposed Direct Form II implementation).
If a is scalar this defaults to the faster Finite Impulse Response, i.e. fir. The IIR is defined as:
\[ a_0*y_{n-1} = b_0*x_{n-1} + b_1*x_{n-2} + \ldots + b_{nb-1}*x_{n-nb-1} - a_1*y_{n-2} - \ldots - a_{na-1}*y_{n-na-1} \]
| array af::iir | ( | int | nb, |
| const float * | h_b, | ||
| int | na, | ||
| const float * | h_a, | ||
| const array & | x | ||
| ) |
| [in] | nb | length of h_b |
| [in] | h_b | host-vector feedforward filter coefficients |
| [in] | na | length of h_a |
| [in] | h_a | host-vector feedback filter coefficients |
| [in] | x |
y) same size as x | array af::iir | ( | const array & | b, |
| const array & | a, | ||
| const array & | x | ||
| ) |
| [in] | b | feedforward filter coefficients |
| [in] | a | feedback filter coefficients |
| [in] | x |
y) same size as x