Collaboration diagram for DSPF_sp_fir_r2:
void | DSPF_sp_fir_r2 (const float *x, const float *h, float *restrict r, const int nh, const int nr) |
void DSPF_sp_fir_r2 | ( | const float * | x, | |
const float * | h, | |||
float *restrict | r, | |||
const int | nh, | |||
const int | nr | |||
) |
Computes a real FIR filter (direct-form) using coefficients stored in vector h[]. The real data input is stored in vector x[]. The filter output result is stored in vector r[]. The filter calculates nr output samples using nh coefficients. The coefficients are expected to be in reverse order.
x[nr+nh-1] | Pointer to input array of size nr+nh-1. | |
h[nh] | Pointer to coefficient array of size nh (in reverse order). | |
r[nr] | Pointer to output array of size nr. | |
nh | Number of coefficents | |
nr | Number of output samples |