Package org.apache.jorphan.math
Class StatCalculatorLong
-
- All Implemented Interfaces:
public class StatCalculatorLong extends StatCalculator<T>
StatCalculator for Long values
-
-
Constructor Summary
Constructors Constructor Description StatCalculatorLong()
-
Method Summary
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. -
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 -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
addValue
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
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
-
-
-
-