org.apache.jorphan.math
Class StatCalculator
java.lang.Object
org.apache.jorphan.math.StatCalculator
- All Implemented Interfaces:
- Serializable
- public class StatCalculator
- extends Object
- implements Serializable
This class serves as a way to calculate the median of a list of values. It
is not threadsafe.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatCalculator
public StatCalculator()
clear
public void clear()
addValue
public void addValue(long newValue)
addValue
public void addValue(int newValue)
addValue
public void addValue(float newValue)
addValue
public void addValue(double newValue)
getMedian
public Number getMedian()
getMean
public double getMean()
getStandardDeviation
public double getStandardDeviation()
getMin
public Number getMin()
getMax
public Number getMax()
getCount
public int getCount()
addValue
public void addValue(Number val)
Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.