org.apache.solr.util.stats

## Class Histogram

- java.lang.Object
- - org.apache.solr.util.stats.Histogram

-     public class Histogram
      extends Object

  A metric which calculates the distribution of a value.
  See Also:
    Accurately computing running variance

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clear()` Clears all recorded values.
    `long` | `getCount()` Returns the number of values recorded.
    `double` | `getMax()`
    `double` | `getMean()`
    `double` | `getMin()`
    `Snapshot` | `getSnapshot()`
    `double` | `getStdDev()`
    `double` | `getSum()`
    `void` | `update(int value)` Adds a recorded value.
    `void` | `update(long value)` Adds a recorded value.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### clear

          public void clear()

      Clears all recorded values.

    - #### update

          public void update(int value)

      Adds a recorded value.
      Parameters:
        `value` - the length of the value

    - #### update

          public void update(long value)

      Adds a recorded value.
      Parameters:
        `value` - the length of the value

    - #### getCount

          public long getCount()

      Returns the number of values recorded.
      Returns:
        the number of values recorded

    - #### getMax

          public double getMax()

    - #### getMin

          public double getMin()

    - #### getMean

          public double getMean()

    - #### getStdDev

          public double getStdDev()

    - #### getSum

          public double getSum()

    - #### getSnapshot

          public Snapshot getSnapshot()

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.