You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(faststats): correct Percentile() to use 0.0-1.0 range as documented
The Percentile() function documented that it accepts p in [0.0 - 1.0],
but the implementation incorrectly checked `p >= 100` and divided by 100.
This caused Var() method to return near-minimum values for all percentiles
since it called Percentile(.25), Percentile(.5), etc.
Fixed by changing bounds check to `p >= 1` and removing the /100 divisor.
Updated tests to use correct 0.0-1.0 range values.
0 commit comments