Hacker News new | ask | show | jobs
by diroussel 2037 days ago
You can compute a sliding window average with the same amount of storage, and greater accuracy.
1 comments

This is definitely not my field, but a sliding window requires N values to be stored (the window size, so you can subtract each element that ages out of the window from the running sum), while this appears to require only 1 value to be stored.