Skip to content

Normalised Least Mean Squares Adaptive Filter

Sambit Paul edited this page Dec 2, 2023 · 3 revisions
The examples provided here use a sinusoid signal mixed with Gaussian noise.

Normalised Least Mean Squares Adaptive Filter

nlms

The parameters for this filter are as follows:

  • Learning Rate (mu) ⇨ 1.0 [The learning rate to determine how fast the adaptive filter updates the filter weights]
  • Length ⇨ 20 [Number of taps in the filter]
Code
double mu = 1.0;
int length = 20;

NLMS filt1 = new NLMS(mu, length, NLMS.WeightsFillMethod.ZEROS); // Initialising weights to zero
filt1.filter(desired, signal); // Weights are adapted so that the input signal can be modified to the desired signal
Clone this wiki locally