Collaboration diagram for DSP_firlms2:
int | DSP_firlms2 (short *restrict h, short *restrict x, short b, int nh) |
int DSP_firlms2 | ( | short *restrict | h, | |
short *restrict | x, | |||
short | b, | |||
int | nh | |||
) |
The Least Mean Square Adaptive Filter computes an update of all nh coefficients by adding the weighted error times the inputs to the original coefficients. The input array includes the last nh inputs followed by a new single sample input. The coefficient array includes nh coefficients.
h | = Coefficient Array | |
x | = Input array | |
b | = Error from previous FIR | |
nh | = Number of coefficients. Must be multiple of 4 |