Class Median<T extends Number & Comparable<? super T>>
java.lang.Object
com.djrapitops.plan.utilities.analysis.Median<T>
- Type Parameters:
T
- aNumber
object which implementsComparable
(In general every standard Java number)
Math utility for calculating the median from Integer values.
-
Method Summary
-
Method Details
-
forList
Creates a Median instance.- Type Parameters:
T
- Type of the number calculating median for- Parameters:
list
- the input list- Returns:
- an instance of
Median
for the List given
-
calculate
public double calculate()
-