Interface ExponentialHistogramBuckets


@Immutable public interface ExponentialHistogramBuckets
ExponentialHistogramBuckets represents either the positive or negative measurements taken for a ExponentialHistogramPointData.

The bucket boundaries are lower-bound exclusive, and are calculated using the ExponentialHistogramPointData.getScale() and the getOffset().

For example, assume ExponentialHistogramPointData.getScale() is 0, the base is 2.0. Then, if offset is 0, the bucket lower bounds would be 1.0, 2.0, 4.0, 8.0, etc. If offset is -3, the bucket lower bounds would be 0.125, 0.25, 0.5, 1.0, 2,0, etc. If offset is +3, the bucket lower bounds would be 8.0, 16.0, 32.0, etc.

Since:
1.23.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The bucket counts is a list of counts representing number of measurements that fall into each bucket.
    int
    The offset shifts the bucket boundaries according to lower_bound = base^(offset+i).
    int
    The scale of the buckets.
    long
    The total count is the sum of all the values in the buckets.
  • Method Details

    • getScale

      int getScale()
      The scale of the buckets. Must align with ExponentialHistogramPointData.getScale().
    • getOffset

      int getOffset()
      The offset shifts the bucket boundaries according to lower_bound = base^(offset+i). .
      Returns:
      the offset.
    • getBucketCounts

      List<Long> getBucketCounts()
      The bucket counts is a list of counts representing number of measurements that fall into each bucket.
      Returns:
      the bucket counts.
    • getTotalCount

      long getTotalCount()
      The total count is the sum of all the values in the buckets.
      Returns:
      the total count.