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

java.lang.Object
  extended byorg.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic
      extended byorg.apache.commons.math.stat.descriptive.rank.Percentile
          extended byorg.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: 1.1 $ $Date: 2004/10/08 05:08:17 $
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
          Serializable version identifier
 
Constructor Summary
Median()
          Default constructor.
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
Serializable version identifier

See Also:
Constant Field Values
Constructor Detail

Median

public Median()
Default constructor.



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