Returns an estimate of the
pth percentile of the values in the
values array.
Calls to this method do not modify the internal quantile state of this statistic.
- Returns
Double.NaN if values has length 0 - Returns (for any value of
p) values[0] if values has length 1 - Throws
IllegalArgumentException if values is null
See {@link Percentile} for a description of the percentile estimationalgorithm used.
@param values input array of values
@param p the percentile value to compute
@return the result of the evaluation or Double.NaN if the array is empty
@throws IllegalArgumentException if values is null