I'm trying to filter some motion noise from an ECG signal. To do that I'll try to implement an adaptive filter using the LMS algorithm.
I think I have to calculate the MSE of this:
E[e^2 ] = E[(s + n )^2 ]+ 2E[(s + n)X ]W^T + WE[X^T X ]W^T
s+n is the noised
X (n) = [ 1, Accx (n), Accy (n), Accz (n)] are the values from the accelerometer,
W = [w0, w1, w2, w3] the coefficients.
Wt +1 = Wt + 2αeX,
I'm trying to understand how to calculate
alfa and minimise the MSE.
can anyone give me a simpler example? I'm kind of lost here.