public class StatCalculatorInteger extends StatCalculator<java.lang.Integer>
Constructor and Description |
---|
StatCalculatorInteger() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(int val) |
void |
addValue(int val,
int sampleCount)
Update the calculator with the value for an aggregated sample.
|
protected java.lang.Integer |
divide(java.lang.Integer val,
int n) |
protected java.lang.Integer |
divide(java.lang.Integer val,
long n) |
addAll, addBytes, addSentBytes, addValue, addValue, clear, getCount, getDistribution, getMax, getMean, getMedian, getMin, getPercentPoint, getPercentPoint, getStandardDeviation, getSum, getTotalBytes, getTotalSentBytes
public void addValue(int val)
public void addValue(int val, int sampleCount)
val
- the aggregate valuesampleCount
- the number of samples contributing to the aggregate valueprotected java.lang.Integer divide(java.lang.Integer val, int n)
divide
in class StatCalculator<java.lang.Integer>
protected java.lang.Integer divide(java.lang.Integer val, long n)
divide
in class StatCalculator<java.lang.Integer>
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.