Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » AVG Formula question

Pages: [1]
Author Topic: AVG Formula question
SpideRMaN
Member
Posts: 96
Post AVG Formula question
on: November 11, 2016 (GMT)

Hi All,

English is not my main language so please bear with me
:)
in the wiki it says:

AVG(bucketSize:value)

Point average. This averages incoming values from a bucket of s set size. The bucket can be configured to average a set amount of values, so AVG(10,value) would average the last 10 values

if I use AVG(10:value)does that mean it waits for the first 10 values, averages them and output the value the WAITS for the NEXT 10,averages them and outputs the value ?

the above is what I am trying to do for a KM/L formula to stop the output from changing very fast (3-5 times a second) but it doesn’t seem to do it as above :(

thank you!

Capp777
Member
Posts: 2993
Post Re: AVG Formula question
on: November 11, 2016 (GMT)

I suggest looking at the EWMAF function as a
possible solution with a weight closer to zero,
e.g., 0.1.

https://torque-bhp.com/wiki/Equations

SpideRMaN
Member
Posts: 96
Post Re: AVG Formula question
on: November 11, 2016 (GMT)

Thanks a lot for your help,

Can you please explain what that function exactly do please ?

Capp777
Member
Posts: 2993
Post Re: AVG Formula question
on: November 11, 2016 (GMT)

It uses an exponentially weighted moving
average to filter the value. The weight determines
how much it’s smoothed (damped) or not.

Graphing the results at both extremes should give
you an idea how well it works. (I used Val{Tilt(z)} for
beta testing with graphs one overtop the other to
see the effect).

It provides a filter for smoothing noisey signals like
you seem to be describing.

Edited.

SpideRMaN
Member
Posts: 96
Post Re: AVG Formula question
on: November 11, 2016 (GMT)

Ok, will experement with it and post here

Thank you very much!

SpideRMaN
Member
Posts: 96
Post Re: AVG Formula question
on: November 13, 2016 (GMT)

Tried it this morning, unfortunately it did not effect the very fast display changing. With or without it i can see no difference at all. I used 0.1 as weight

Can you think of any thing els to slow down the display please?

Thanks

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.021 seconds.

  Follow me on twitter