org.apache.jorphan.math

## Class StatCalculatorInteger

- java.lang.Object
- - org.apache.jorphan.math.StatCalculator<java.lang.Integer>
  - - org.apache.jorphan.math.StatCalculatorInteger

-     public class StatCalculatorInteger
      extends StatCalculator<java.lang.Integer>

  StatCalculator for Integer values

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StatCalculatorInteger()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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)`

    - ### 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

          public StatCalculatorInteger()

  - ### 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 value
        `sampleCount` - the number of samples contributing to the aggregate value

    - #### divide

          protected java.lang.Integer divide(java.lang.Integer val,
                                             int n)

      Specified by:
        `divide` in class `StatCalculator<java.lang.Integer>`

    - #### divide

          protected java.lang.Integer divide(java.lang.Integer val,
                                             long n)

      Specified by:
        `divide` in class `StatCalculator<java.lang.Integer>`

Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.