A high-performance general-purpose compute library

This function implements a Finite Impulse Filter. More...

Functions

AFAPI array fir (const array &b, const array &x)
 C++ Interface for finite impulse response filter. More...
 
AFAPI af_err af_fir (af_array *y, const af_array b, const af_array x)
 C Interface for finite impulse response filter. More...
 

Detailed Description

This function implements a Finite Impulse Filter.

Finite impulse filters take an input x and a co-efficient array b to generate an output y such that:

   \f$y[n] = \sum_{i = 0}^N b_i . x[n]\f$

Function Documentation

◆ af_fir()

AFAPI af_err af_fir ( af_array y,
const af_array  b,
const af_array  x 
)

C Interface for finite impulse response filter.

Parameters
[out]yis the output signal from the filter
[in]bis the array containing the coefficients of the filter
[in]xis the input signal to the filter

◆ fir()

AFAPI array fir ( const array b,
const array x 
)

C++ Interface for finite impulse response filter.

Parameters
[in]bis the array containing the coefficients of the filter
[in]xis the input signal to the filter
Returns
the output signal from the filter