**4.5 Comparison with Kalman Filter (KF) algorithm**

The proposed algorithm is compared with KF algorithm. Fig 39 gives the results obtained when both filters are implemented to estimate the second harmonic components of the current in phase *A*, at different data window sizes and when the considered number of harmonics is 15. Examination of the Figure reveals the following; both filters produce almost the same estimate for the second harmonic magnitude; and the magnitude of the estimated harmonic varies from one data window to another.

Fig. 39. Estimated second harmonic magnitude using KF and WLAV.
