| Author |
Message |
Jaxom
Joined: Jun 13, 2015 Posts: 13
|
Posted: Dec 5, 2018 1:53 AM 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: 1073
|
Posted: Dec 5, 2018 4:05 PM 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 13, 2015 Posts: 13
|
Posted: Dec 5, 2018 4:32 PM Post subject: |
|
Hi Jarek,
Quick, clear and exactly what I was hoping to hear.
Thanks!
Jaxom |
|