| |
|
| java.lang.Object org.apache.jorphan.math.StatCalculator
StatCalculator | public class StatCalculator implements Serializable(Code) | | This class serves as a way to calculate the median of a list of values. It is
not threadsafe.
|
deviation | double deviation(Code) | | |
sumOfSquares | double sumOfSquares(Code) | | |
addBytes | public void addBytes(long newValue)(Code) | | |
addValue | public void addValue(long newValue)(Code) | | |
addValue | public void addValue(int newValue)(Code) | | |
addValue | public void addValue(float newValue)(Code) | | |
addValue | public void addValue(double newValue)(Code) | | |
clear | public void clear()(Code) | | |
getCount | public int getCount()(Code) | | |
getDistribution | public synchronized HashMap getDistribution()(Code) | | The method has a limit of 1% as the finest granularity. We do this to
make sure we get a whole number for iterating.
|
getMean | public double getMean()(Code) | | |
getPercentPoint | public Number getPercentPoint(float percent)(Code) | | Get the value which %percent% of the values are less than. This works
just like median (where median represents the 50% point). A typical
desire is to see the 90% point - the value that 90% of the data points
are below, the remaining 10% are above.
Parameters: percent - number of values less than the percentage |
getPercentPoint | public Number getPercentPoint(double percent)(Code) | | Get the value which %percent% of the values are less than. This works
just like median (where median represents the 50% point). A typical
desire is to see the 90% point - the value that 90% of the data points
are below, the remaining 10% are above.
Parameters: percent - number of values less than the percentage |
getStandardDeviation | public double getStandardDeviation()(Code) | | |
getTotalBytes | public long getTotalBytes()(Code) | | |
|
|
|