Skip to content

How is the moving average calculated? #251

Answered by mortbopet
jnoche asked this question in Q&A
Discussion options

You must be logged in to vote

Copy-pasting from 211a420

Moving average was calculated incorrectly, as shown in #251. I can't recall the exact reason for the old implementation, but my hunch is that i wanted the moving average to be able to be plotted in the "total hits/total access" configuration, which led to this notion of tracking last iteration differences etc. etc..
However, this methodology is flawed to begin with, since the moving average (obviously, in hindsight) need to be calculated on a a range of "was cycle # a hit or miss" values across a given window.

A moving average can now be achieved by setting "was hit / 1" as the configuration, and enabling the moving average (and disabling the "ratio" plot). I sti…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jnoche
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants