Is there an easy way to average some calculated values over a user-specified period of time (say 10 sec), rather than averaging a number of samples? Example - suppose you are continuously calculating the frequency of a signal using FFT, and the frequency varies unpredicatably with time, and you want to output the average frequency in each successive 10 second (or 1 minute or whatever) time window?
Thanks