org.apache.commons.math.stat.descriptive.rank
Class Median

java.lang.Object
  extended by org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
      extended by org.apache.commons.math.stat.descriptive.rank.Percentile
          extended by org.apache.commons.math.stat.descriptive.rank.Median
All Implemented Interfaces:
Serializable, UnivariateStatistic

public class Median
extends Percentile
implements Serializable

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:
Serialized Form

Field Summary
private static long serialVersionUID
          Serializable version identifier
 
Constructor Summary
Median()
          Default constructor.
Median(Median original)
          Copy constructor, creates a new Median identical to the original
 
Method Summary
 
Methods inherited from class org.apache.commons.math.stat.descriptive.rank.Percentile
copy, copy, evaluate, evaluate, evaluate, evaluate, getQuantile, medianOf3, setData, setData, setQuantile
 
Methods inherited from class org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
evaluate, evaluate, getData, getDataRef, test, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serializable version identifier

See Also:
Constant Field Values
Constructor Detail

Median

public Median()
Default constructor.


Median

public Median(Median original)
Copy constructor, creates a new Median identical to the original

Parameters:
original - the Median instance to copy


Copyright (c) 2003-2011 Apache Software Foundation