Apache JMeter
2.0.1.20050615

org.apache.jorphan.math
Class StatCalculator

java.lang.Object
  extended byorg.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

Nested Class Summary
static class StatCalculator.Test
           
 
Constructor Summary
StatCalculator()
           
 
Method Summary
 void addValue(double newValue)
           
 void addValue(float newValue)
           
 void addValue(int newValue)
           
 void addValue(long newValue)
           
 void addValue(Number val)
           
 void clear()
           
 int getCount()
           
 Number getMax()
           
 double getMean()
           
 Number getMedian()
           
 Number getMin()
           
 double getStandardDeviation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatCalculator

public StatCalculator()
Method Detail

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)

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.