org.apache.jorphan.math

## Class StatCalculatorLong

- java.lang.Object
- - org.apache.jorphan.math.StatCalculator<java.lang.Long>
  - - org.apache.jorphan.math.StatCalculatorLong

-     public class StatCalculatorLong
      extends StatCalculator<java.lang.Long>

  StatCalculator for Long values

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StatCalculatorLong()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addValue(long val)` Add a single value (normally elapsed time)
    `void` | `addValue(long val, int sampleCount)` Update the calculator with the value for an aggregated sample.
    `protected java.lang.Long` | `divide(java.lang.Long val, int n)`
    `protected java.lang.Long` | `divide(java.lang.Long 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

    - #### StatCalculatorLong

          public StatCalculatorLong()

  - ### Method Detail

    - #### addValue

          public 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

          public void addValue(long val,
                               int sampleCount)

      Update the calculator with the value for an aggregated sample.
      Parameters:
        `val` - the aggregate value, normally the elapsed time
        `sampleCount` - the number of samples contributing to the aggregate value

    - #### divide

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

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

    - #### divide

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

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

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