Class Median
java.lang.Object
org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
org.apache.commons.math.stat.descriptive.rank.Percentile
org.apache.commons.math.stat.descriptive.rank.Median
- All Implemented Interfaces:
Serializable
,UnivariateStatistic
Returns the median of the available values. This is the same as the 50th percentile.
See
Percentile
for a description of the algorithm used.
Note that this implementation is not synchronized. If
multiple threads access an instance of this class concurrently, and at least
one of the threads invokes the increment()
or
clear()
method, it must be synchronized externally.
- Version:
- $Revision: 811685 $ $Date: 2009-09-05 19:36:48 +0200 (sam. 05 sept. 2009) $
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.math.stat.descriptive.rank.Percentile
copy, copy, evaluate, evaluate, evaluate, evaluate, getQuantile, setData, setData, setQuantile
Methods inherited from class org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
evaluate, evaluate, getData, getDataRef, test, test
-
Constructor Details
-
Median
public Median()Default constructor. -
Median
Copy constructor, creates a newMedian
identical to theoriginal
- Parameters:
original
- theMedian
instance to copy
-