Graphics Programs Reference
In-Depth Information
The new parameter estimate W i+1 is based on the previous set of fi lter weights
W i plus a term which is the product of a bounded step size u , a function of the
input state X i and a function of the error e i . In other words, error e i calculated
from the previous step is fed back to the system to update fi lter coeffi cients
for the next step (Fig. 6.6). The fi xed convergence factor u regulates the
speed and stability of adaption. A small value ensures a higher accuracy but
more data are needed to teach the fi lter to reach the optimum solution. In the
modifi ed version of the LMS algorithm by Hattingh (1988), this problem
is overcome by feeding the data back so that the canceler can have another
chance to improve its own coeffi cients and adapt to the changes in the data.
In the following MATLAB function canc , each of these loops is called
an iteration since many of these loops are required to achieve optimal re-
sults. This algorithm extracts the noise-free signal from two vectors x and s
containing the correlated signal and uncorrelated noise. As an example, we
generate two signals containing the same sine wave, but different gaussian
noise.
x = 0:0.1:100;
y = sin(x);
yn1 = y + 0.2*randn(size(y));
yn2 = y + 0.2*randn(size(y));
plot(x,yn1,x,yn2)
Save the following code in a text fi le canc.m and include it into the search
+
Primary
input
System
output
Σ
-
Filter
output
Error
Adaptation
Algorithm
Reference
input
Adaptive Noise Canceller
Fig. 6.6 Schematic of an adaptive fi lter. Each iteration involves a new estimate of the fi lter
weights W i+1 based on the previous set of fi lter weights W i plus a term which is the product of
a bounded step size u , a function of the fi lter input X i , and a function of the error e i . In other
words, error e i calculated from the previous step is fed back to the system to update fi lter
coeffi cients for the next step (modifi ed from Trauth 1998).
 
Search WWH ::




Custom Search