calculatePercentiles function

calculate quantile values from a column.