Online frequency estimation with applications to engine and generator sets. (July 2017)