Computes a quantile for a numeric array.