Package org.apache.jorphan.math
Class StatCalculatorLong
StatCalculator for Long values
- 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class org.apache.jorphan.math.StatCalculator
addAll, addBytes, addSentBytes, addValue, addValue, clear, getCount, getDistribution, getMax, getMean, getMedian, getMin, getPercentPoint, getPercentPoint, getStandardDeviation, getSum, getTotalBytes, getTotalSentBytes 
- 
Constructor Details
- 
StatCalculatorLong
public StatCalculatorLong() 
 - 
 - 
Method Details
- 
addValue
public void addValue(long val) Add a single value (normally elapsed time)- Parameters:
 val- the value to add, which should correspond with a single sample
 - 
addValue
public void addValue(long val, int sampleCount) Update the calculator with the value for an aggregated sample.- Parameters:
 val- the aggregate value, normally the elapsed timesampleCount- the number of samples contributing to the aggregate value
 - 
divide
- Specified by:
 dividein classStatCalculator<Long>
 - 
divide
- Specified by:
 dividein classStatCalculator<Long>
 
 -