Package org.apache.jorphan.math
Class StatCalculatorInteger
- java.lang.Object
-
- org.apache.jorphan.math.StatCalculator<Integer>
-
- org.apache.jorphan.math.StatCalculatorInteger
-
public class StatCalculatorInteger extends StatCalculator<Integer>
StatCalculator for Integer values
-
-
Constructor Summary
Constructors Constructor Description StatCalculatorInteger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(int val)voidaddValue(int val, int sampleCount)Update the calculator with the value for an aggregated sample.protected Integerdivide(Integer val, int n)protected Integerdivide(Integer 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(int val)
-
addValue
public void addValue(int val, int sampleCount)Update the calculator with the value for an aggregated sample.- Parameters:
val- the aggregate valuesampleCount- the number of samples contributing to the aggregate value
-
divide
protected Integer divide(Integer val, int n)
- Specified by:
dividein classStatCalculator<Integer>
-
divide
protected Integer divide(Integer val, long n)
- Specified by:
dividein classStatCalculator<Integer>
-
-