median' (VU.fromList [maxBound - 1, maxBound :: Int]) gives -1.5 - the
sum wraps in Int. mean has the same problem.
Widening per element fixes it but adds a conversion in the hot loop
(#214 review), so it needs db-benchmark numbers first. Will send a PR
with benchmarks.
median' (VU.fromList [maxBound - 1, maxBound :: Int]) gives -1.5 - the
sum wraps in Int. mean has the same problem.
Widening per element fixes it but adds a conversion in the hot loop
(#214 review), so it needs db-benchmark numbers first. Will send a PR
with benchmarks.