Documentation
|
|
C++ interface for Finite Impulse Response. More...
| array | fir (int nb, const float *h_b, const array &x) |
| array | fir (const array &b, const array &x) |
| Finite impulse response filtering. More... | |
C++ interface for Finite Impulse Response.
Applies a Finite impulse response filter to an array. This filter is used in digital signal processing and is called finite (as opposed to iir) because the impulse response settles to zero in a fixed number of steps.
The FIR is defined as:
\[y_{n-1} = b_0*x_{n-1} + b_1*x_{n-2} + \ldots + b_{nb-1}*x_{n-nb-1}\]
| array af::fir | ( | int | nb, |
| const float * | h_b, | ||
| const array & | x | ||
| ) |
| [in] | nb | length of h_b |
| [in] | h_b | host-array of filter coefficients |
| [in] | x |
y) same size as x | array af::fir | ( | const array & | b, |
| const array & | x | ||
| ) |
Finite impulse response filtering.
| [in] | b | filter |
| [in] | x | signal |
y) same size as x