public class PercentileCalculator extends Object
Constructor and Description |
---|
PercentileCalculator() |
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<T>> |
getPercentiles(List<T> list,
double[] percents)
Calculates a list of percentile values for a given list of objects and percentiles.
|
public static <T extends Comparable<T>> List<T> getPercentiles(List<T> list, double[] percents)
list
- The list of Comparable
objects to calculate the percentiles of.percents
- The array of percentiles (.01 to .99) to calculate.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.