|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jorphan.math.StatCalculator
public class StatCalculator
This class serves as a way to calculate the median of a list of values. It is not threadsafe.
Constructor Summary | |
---|---|
StatCalculator()
|
Method Summary | |
---|---|
void |
addAll(StatCalculator calc)
|
void |
addBytes(long newValue)
|
void |
addValue(double newValue)
|
void |
addValue(float newValue)
|
void |
addValue(int newValue)
|
void |
addValue(long newValue)
|
void |
addValue(java.lang.Number val)
|
void |
clear()
|
int |
getCount()
|
java.util.HashMap |
getDistribution()
The method has a limit of 1% as the finest granularity. |
java.lang.Number |
getMax()
|
double |
getMean()
|
java.lang.Number |
getMedian()
|
java.lang.Number |
getMin()
|
java.lang.Number |
getPercentPoint(double percent)
Get the value which %percent% of the values are less than. |
java.lang.Number |
getPercentPoint(float percent)
Get the value which %percent% of the values are less than. |
double |
getStandardDeviation()
|
long |
getTotalBytes()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatCalculator()
Method Detail |
---|
public void clear()
public void addValue(long newValue)
public void addValue(int newValue)
public void addValue(float newValue)
public void addValue(double newValue)
public void addBytes(long newValue)
public void addAll(StatCalculator calc)
public java.lang.Number getMedian()
public long getTotalBytes()
public java.lang.Number getPercentPoint(float percent)
percent
-
public java.lang.Number getPercentPoint(double percent)
percent
-
public java.util.HashMap getDistribution()
public double getMean()
public double getStandardDeviation()
public java.lang.Number getMin()
public java.lang.Number getMax()
public int getCount()
public void addValue(java.lang.Number val)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |