public class MedianCalculator extends Object
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-2015 Apache Software Foundation. All Rights Reserved.