2 ms·
> However a point can be made that if you even need to consider such behavior, you should probably be using something more precise than your current number repr
by jimktrains2 5y ago
> However a point can be made that if you even need to consider such behavior, you should probably be using something more precise than your current number representation.
Or a different algorithm. For instance, when computing a mean, keeping the current mean and count instead of the current total and count is more numerically stable.
https://statisticsblog412536603.wordpress.com/2019/10/17/streaming-algorithms-for-the-mean-mu-and-the-variance-knouth-welford-sigma2-show-with-and-example-why-the-running-mean-formula-is-preferable-to-the-definition-formula/ https://statisticsblog412536603.wordpress.com/2019/10/17/str...