Class StatCalculatorInteger

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public double sum
      public double mean
      public long count
      public T min
      public T max
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void addValue(int val)
      void addValue(int 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
    • Constructor Detail

      • StatCalculatorInteger

        StatCalculatorInteger()
    • Method Detail

      • addValue

         void addValue(int val, int sampleCount)

        Update the calculator with the value for an aggregated sample.

        Parameters:
        val - the aggregate value
        sampleCount - the number of samples contributing to the aggregate value