Package org.apache.jorphan.math
Class StatCalculatorLong
- java.lang.Object
-
- org.apache.jorphan.math.StatCalculator<Long>
-
- org.apache.jorphan.math.StatCalculatorLong
-
public class StatCalculatorLong extends StatCalculator<Long>
StatCalculator for Long values
-
-
Constructor Summary
Constructors Constructor Description StatCalculatorLong()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(long val)Add a single value (normally elapsed time)voidaddValue(long val, int sampleCount)Update the calculator with the value for an aggregated sample.protected Longdivide(Long val, int n)protected Longdivide(Long val, long n)-
Methods inherited from class org.apache.jorphan.math.StatCalculator
addAll, addBytes, addValue, addValue, clear, getCount, getDistribution, getMax, getMean, getMedian, getMin, getPercentPoint, getPercentPoint, getStandardDeviation, getSum, getTotalBytes
-
-
-
-
Method Detail
-
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
protected Long divide(Long val, int n)
- Specified by:
dividein classStatCalculator<Long>
-
divide
protected Long divide(Long val, long n)
- Specified by:
dividein classStatCalculator<Long>
-
-