Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Running Average, Moving Average
Reply to topic
Author Message
Jaxom



Joined: Jun 12, 2015
Posts: 6

PostPosted: Dec 4, 2018 7:53 PM    Post subject: Running Average, Moving Average

Let's say I want a running average (moving average) over 0.5 seconds of the amplitude from a bandpass filter. How do I do that? Do I use the bandpass filter amplitude as the input to a ScalarTransform, with the time period 0.5 seconds and the processing function "average"?

If not that, then how?

(Is the "average" of a ScalarTransform a running average, or would the setting I describe just give me a readout each half-second of the average of the previous half second? If the latter, then how do I get a moving average?)

And does the filter delay of the bandpass filter come into play here somehow?

Thank you.
jarek



Joined: Oct 22, 2007
Posts: 605

PostPosted: Dec 5, 2018 10:05 AM    Post subject:

Yes, you use TimeTransform with 0.5 seconds time period. With all default settings unchanged, this is running average.

To use it with filter, connect it to its second output: Amplitude.

The delay is only for your information about how responsive the filter is. So no, it has nothing to do how to average the output signal.
Jaxom



Joined: Jun 12, 2015
Posts: 6

PostPosted: Dec 5, 2018 10:32 AM    Post subject:

Hi Jarek,

Quick, clear and exactly what I was hoping to hear.

Thanks!

Jaxom
Reply to topic