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