Adaptive determination of fundamental frequency for direct time-domain averaging. (August 2018)