Analysis of harmonic detection algorithms and their application to active power filters for harmonics compensation and resonance damping | IEEE Journals & Magazine | IEEE Xplore