]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve the way we calculate variance to reduce the rounding errors
authorphk <phk@FreeBSD.org>
Fri, 18 Oct 2019 07:55:01 +0000 (07:55 +0000)
committerphk <phk@FreeBSD.org>
Fri, 18 Oct 2019 07:55:01 +0000 (07:55 +0000)
commitc404e5b4f1b822447eb42dad66a2644937b20e39
tree68b8f68d64c796c5b085b42e546b9b08cd6b2e2d
parent9cc4228e506618d011df3809eb4531de58685b88
Improve the way we calculate variance to reduce the rounding errors
when variance is small relative to data points.

Now [0, 1, 2] shows same standard deviation as [10000000000000, ...1, ...2]

Also:  Various nitpickery from my own tree.
usr.bin/ministat/ministat.c