Conversation

This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
Ultimately depends on how much precision you want. The rule of thumb I use is to never throw away any information, so use integers only and ensure no overflow. And if you need to throw away bits do it explicitly to avoid bias due to uncontrolled rounding.
1
Replying to
Then another way is to use a first order IIR low pass filter. This has "forgetting" built-in, and is inherently in update form. But it's a different kind of average which biases recent values more.
1