![]() |
![]() |
Collaboration diagram for DSPF_sp_lms2:
![]() |
float | DSPF_sp_lms (const float *x, float *restrict h, const float *y_i, float *restrict y_o, const float ar, float error, const int nh, const int nx) |
float DSPF_sp_lms | ( | const float * | x, | |
float *restrict | h, | |||
const float * | y_i, | |||
float *restrict | y_o, | |||
const float | ar, | |||
float | error, | |||
const int | nh, | |||
const int | nx | |||
) |
The DSPF_sp_lms implements an LMS adaptive filter. Given an actual input signal and a desired input signal, the filter produces an output signal, the final coefficient values, and returns the final output error signal.
x | Pointer to input samples | |
h | Pointer to the coefficient array | |
y_i | Pointer to the desired output array | |
y_o | Pointer to filtered output array | |
ar | Adaptation rate | |
error | Initial error | |
nh | Number of coefficients | |
nx | Number of output samples |