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: 348519 $ $Date: 2005-11-23 12:12:18 -0700 (Wed, 23 Nov 2005) $
See Also:
Serialized Form

Constructor Summary
Median()
          Default constructor.
 
Method Summary
 
Methods inherited from class org.apache.commons.math.stat.descriptive.rank.Percentile
evaluate, evaluate, evaluate, getQuantile, setQuantile
 
Methods inherited from class org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
evaluate, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Median

public Median()
Default constructor.



Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.