This question here does not seem to help: Calculating Percentiles (Ruby)
I would like to calculate 95th percentile (or, indeed, any other desired percentile) from an array of numbers. Ultimately, this will be applied in Rails to calculate distribution against a large number of records.
But, if I can determine how to accurately determine a given percentile from an array of numbers, I can take it from there.
Frankly, I am surprised that I haven't been able to find some sort of gem that would have such functions--I haven't found one yet.
Help is greatly appreciated.