public class MedianCalculator extends Object
OrdinalCalculator
for actual analytics requests.Constructor and Description |
---|
MedianCalculator() |
Modifier and Type | Method and Description |
---|---|
static <T extends Number & Comparable<T>> |
getMedian(List<T> list)
Calculates the median of the given list of numbers.
|
public static <T extends Number & Comparable<T>> double getMedian(List<T> list)
list
- A list of Comparable
Number
objectsCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.