Skip to main content
7 events
when toggle format what by license comment
Feb 14, 2015 at 14:26 answer added Rolf Kreibaum timeline score: 0
Feb 14, 2015 at 14:18 comment added Rolf Kreibaum There is a way (I'll post a solution), but it is susceptible to rounding errors. You can add extra precautions to avoid those though.
Feb 14, 2015 at 14:16 comment added MightyPork You're right, I want to display a "real time" value. I hoped there'd be a way to do it without keeping history, but that'll probably indeed be the easiest way.
Feb 14, 2015 at 13:54 comment added Rolf Kreibaum That aside, if you really have a constantly updating counter somewhere, comment. Calculating a running average is definitely possible without much computation power.
Feb 14, 2015 at 13:45 comment added Rolf Kreibaum I guess that is mostly a question of programming, not of math. Saving that stream of numbers should (at about 0.1kib/data point) only take 50mib per year. Keeping all the past values doesn't really seem like a problem. (And may allow you to do exiting stuff later) Unless you want to display a continuously updating number somewhere in your home, the naive, unoptimized algorithm shouldn't be a problem. (And a decent math library should allow you to average a billion numbers)
Feb 14, 2015 at 12:59 history edited MightyPork CC BY-SA 3.0
added 54 characters in body
Feb 14, 2015 at 12:53 history asked MightyPork CC BY-SA 3.0