Recently i have encountered the fact that org.apache.commons.math3.stat
lib's DescriptiveStatistics::getPercentile
method uses different approach to calculate the percentile of a given number set than the regular method. This SO answer explains the difference. here
So it seems this is not a bug but some decision they took intentionally. What is the reason behind using some different method to calculate percentile in apache.commons's lib without using standard method?.
Or is there any assumption behind this method (like assuming data set would be large) or some practical issue(like performance over accuracy)?.
Can someone explain the reason behind this algorithmic decision.