Functions | |
array | fir (int nb, const float *h_b, const array &x) |
Finite impulse response filtering. | |
array | fir (const array &b, const array &x) |
Finite impulse response filtering. | |
array | iir (int nb, const float *h_b, int na, const float *h_a, const array &x) |
Infinite impulse response filter (transposed Direct Form II implementation). | |
array | iir (const array &b, const array &a, const array &x) |
Infinite impulse response filter (transposed Direct Form II implementation). |
array af::fir | ( | int | nb, |
const float * | h_b, | ||
const array & | x | ||
) |
Finite impulse response filtering.
y[n-1] = b[0]*x[n-1] + b[1]*x[n-2] + ... + b[nb-1]*x[n-nb-1]
[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.
y[n-1] = b[0]*x[n-1] + b[1]*x[n-2] + ... + b[nb-1]*x[n-nb-1]
[in] | b | filter |
[in] | x | signal |
y
) same size as x
array af::iir | ( | int | nb, |
const float * | h_b, | ||
int | na, | ||
const float * | h_a, | ||
const array & | x | ||
) |
Infinite impulse response filter (transposed Direct Form II implementation).
If a
is scalar this defaults to the faster Finite Impulse Response, i.e. convolve().
a[0]*y[n-1] = b[0]*x[n-1] + b[1]*x[n-2] + ... + b[nb-1]*x[n-nb-1] - a[1]*y[n-2] - ... - a[na-1]*y[n-na-1]
[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 | ||
) |
Infinite impulse response filter (transposed Direct Form II implementation).
If a
is scalar this defaults to the faster Finite Impulse Response, i.e. convolve().
a[0]*y[n-1] = b[0]*x[n-1] + b[1]*x[n-2] + ... + b[nb-1]*x[n-nb-1] - a[1]*y[n-2] - ... - a[na-1]*y[n-na-1]
[in] | b | feedforward filter coefficients |
[in] | a | feedback filter coefficients |
[in] | x |
y
) same size as x