Home | History | Annotate | Download | only in stat

Lines Matching refs:percentile

28 import org.apache.commons.math.stat.descriptive.rank.Percentile;
66 /** percentile */
67 private static final Percentile PERCENTILE = new Percentile();
498 * Returns an estimate of the <code>p</code>th percentile of the values
511 * See {@link org.apache.commons.math.stat.descriptive.rank.Percentile} for
512 * a description of the percentile estimation algorithm used.</p>
515 * @param p the percentile value to compute
516 * @return the percentile value or Double.NaN if the array is empty
520 public static double percentile(final double[] values, final double p) {
521 return PERCENTILE.evaluate(values,p);
525 * Returns an estimate of the <code>p</code>th percentile of the values
540 * See {@link org.apache.commons.math.stat.descriptive.rank.Percentile} for
541 * a description of the percentile estimation algorithm used.</p>
544 * @param p the percentile to compute
547 * @return the percentile value
551 public static double percentile(final double[] values, final int begin,
553 return PERCENTILE.evaluate(values, begin, length, p);