Previous topicNext topic

Difference between "Average" and "Smooth" modifiers?

Questions, comments, feedback, etc.
Post Reply
Terry Payman
Posts: 710
Joined: Sun Sep 14, 2014 8:15 am
Location: UK
Contact:

Difference between "Average" and "Smooth" modifiers?

Post by Terry Payman »

The rectangular time window and processing for the Average modifier is explained in detail in the User's Guide. I'm wondering how the Smooth modifier differs.

To date I never felt the need for more smoothness than the Average modifier gave me, but suspect I'm missing something more than a Smooth value of 1.0 meaning it's locked at the most recent value.
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Difference between "Average" and "Smooth" modifiers?

Post by Magic »

The difference is the algorithm. I'm not sure if I could explain it without getting into the math -- how much detail are you looking for? :ugeek:
Terry Payman
Posts: 710
Joined: Sun Sep 14, 2014 8:15 am
Location: UK
Contact:

Re: Difference between "Average" and "Smooth" modifiers?

Post by Terry Payman »

Eric wrote:The difference is the algorithm. I'm not sure if I could explain it without getting into the math -- how much detail are you looking for? :ugeek:
The math would be fine thanks!

Edit:
I'm particularly interested in the time window over which the smoothing is applied, whether the window is rectangular as with the Average modifier, whether the response is linear with amplitude and whether outlier samples are filtered. If I have an algorithm or a few lines of code that would be a good start.
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Difference between "Average" and "Smooth" modifiers?

Post by Magic »

The function is s * p + (1 - s) * v, where s is the smoothing factor, p is the value from the previous frame, and v is the value from the current frame. Therefore if s is closer to 1, you get more smoothing because the previous value is emphasized, and if s is closer to 0, you get less smoothing because the current value is emphasized.
Terry Payman
Posts: 710
Joined: Sun Sep 14, 2014 8:15 am
Location: UK
Contact:

Re: Difference between "Average" and "Smooth" modifiers?

Post by Terry Payman »

Thanks Eric. All is now clear.

I made a Magic oscillograph project to illustrate the differences between Average and Smooth.
Average vs Smooth.png
Average vs Smooth.png (46.83 KiB) Viewed 7481 times
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Difference between "Average" and "Smooth" modifiers?

Post by Magic »

Fun! :P
DemBambiSeiMudder
Posts: 58
Joined: Thu Oct 20, 2016 10:43 pm

Re: Difference between "Average" and "Smooth" modifiers?

Post by DemBambiSeiMudder »

Hey Terry,
the oscillograph is awesome.
I thought I knew the difference, but this makes it so much more clear!
Thank you :-D
Terry Payman
Posts: 710
Joined: Sun Sep 14, 2014 8:15 am
Location: UK
Contact:

Re: Difference between "Average" and "Smooth" modifiers?

Post by Terry Payman »

DemBambiSeiMudder wrote:the oscillograph is awesome... this makes it so much more clear!
Thank you :-D
Thanks! :D
Slavi
Posts: 54
Joined: Thu Mar 31, 2016 7:15 am

Re: Difference between "Average" and "Smooth" modifiers?

Post by Slavi »

DemBambiSeiMudder wrote:Hey Terry,
the oscillograph is awesome.
I thought I knew the difference, but this makes it so much more clear!
Thank you :-D
+1 more for Terry's visualiastion. Makes much more sence now :mrgreen:
Post Reply