in reply to Re: Average over time
in thread Average over time

What I posted is one method of keeping a running average over the last (timeperiod). But it requires that I keep all the events in memory until they age out.

I'm looking for a method that would dispense with that requirement. There may not be one for all I know, but I thought it was worth asking the other monks for ideas.

Replies are listed 'Best First'.
Re^3: Average over time
by Roy Johnson (Monsignor) on Mar 24, 2004 at 19:20 UTC
    If you needed to, you could aggregate individual entries into small blocks of time. For example, 5 second intervals instead of 1 second intervals. At the very least, if you've got multiple entries for any given second (since that seems to be the finest resolution you look at), you would want to store only the average for that second.

    The PerlMonk tr/// Advocate