org.apache.solr.analytics.util

## Class MedianCalculator

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

-     public class MedianCalculator
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MedianCalculator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends Number & Comparable<T>> double` | `getMedian(List<T> list)` Calculates the median of the given list of numbers.

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

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

- - ### Constructor Detail

    - #### MedianCalculator

          public MedianCalculator()

  - ### Method Detail

    - #### getMedian

          public static <T extends Number & Comparable<T>> double getMedian(List<T> list)

      Calculates the median of the given list of numbers.
      Parameters:
        `list` - A list of `Comparable` `Number` objects
      Returns:
        The median of the given list as a double.

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