Quantcast
Viewing all articles
Browse latest Browse all 6

Answer by Mark Stocks for Incremental averaging

yep easy to do - I call it the travelling mean :)

Note you will need to keep track of the 1. 'count' of values, 2. previous 'mean' and 3. the 'new value'. Algorithm is:

in words : ('previous mean' * '(count -1)') +'new value') / 'count'

benefit you have a running mean can do the same with 'standard deviation' just a little more complex


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>