haskell / statistics

A fast, high quality library for computing with statistics in Haskell.
http://hackage.haskell.org/package/statistics
BSD 2-Clause "Simplified" License
300 stars 68 forks source link

Possible overflow in Module : Statistics.Correlation.Kendall #204

Closed DayneSorvisto closed 1 year ago

Shimuuar commented 1 year ago

Are you referring to?

https://github.com/haskell/statistics/blob/f19804958c76e02e38457d4862fe6e69717736b2/Statistics/Correlation/Kendall.hs#L57-L69

I'm not sure that it's a real problem doing Integer arithmetic wouldn't hurt there. If you referring to

https://github.com/haskell/statistics/blob/f19804958c76e02e38457d4862fe6e69717736b2/Statistics/Correlation/Kendall.hs#L47-L49

It's Integer already