Interface Histogram.Statistics

  • Enclosing interface:
    Histogram

    public static interface Histogram.Statistics
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long max()
      Returns the maximum value of the histogram observations.
      double mean()
      Returns the mean value of the histogram observations.
      long min()
      Returns the minimum value of the histogram observations.
      long percentile​(double percentile)
      Returns the percentile value based on the histogram statistics.
      int size()
      Return the number of values that the statistics computation is based on.
      double stdDev()
      Returns the standard deviation of the histogram distribution.
    • Method Detail

      • size

        int size()
        Return the number of values that the statistics computation is based on.

        If the number of sampling is less than the reservoir size, the sampling count should be returned. Otherwise, the reservoir size is returned.

      • mean

        double mean()
        Returns the mean value of the histogram observations.
      • stdDev

        double stdDev()
        Returns the standard deviation of the histogram distribution.
      • max

        long max()
        Returns the maximum value of the histogram observations.
      • min

        long min()
        Returns the minimum value of the histogram observations.
      • percentile

        long percentile​(double percentile)
        Returns the percentile value based on the histogram statistics.
        Parameters:
        percentile - percentile point in double. E.g., 0.75 means 75 percentile. It is up to the implementation to decide what valid percentile points are supported.
        Returns:
        Value for the given percentile