org.apache.solr.analytics.util

## Class PercentileCalculator

- java.lang.Object
- - org.apache.solr.analytics.util.PercentileCalculator

-     public class PercentileCalculator
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PercentileCalculator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends Comparable<T>> List<T>` | `getPercentiles(List<T> list, double[] percents)` Calculates a list of percentile values for a given list of objects and percentiles.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PercentileCalculator

          public PercentileCalculator()

  - ### Method Detail

    - #### getPercentiles

          public static <T extends Comparable<T>> List<T> getPercentiles(List<T> list,
                                                                         double[] percents)

      Calculates a list of percentile values for a given list of objects and percentiles.
      Parameters:
        `list` - The list of `Comparable` objects to calculate the percentiles of.
        `percents` - The array of percentiles (.01 to .99) to calculate.
      Returns:
        a list of comparables

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.