public class Median extends Percentile implements java.io.Serializable
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.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Serializable version identifier
|
Constructor and Description |
---|
Median()
Default constructor.
|
Median(Median original)
Copy constructor, creates a new
Median identical
to the original |
copy, copy, evaluate, evaluate, evaluate, evaluate, getQuantile, medianOf3, setData, setData, setQuantile
evaluate, evaluate, getData, getDataRef, test, test, test, test
private static final long serialVersionUID
public Median()
public Median(Median original) throws NullArgumentException
Median
identical
to the original
original
- the Median
instance to copyNullArgumentException
- if original is nullCopyright (c) 2003-2014 Apache Software Foundation