• We are unable to store the complex Histogram object in Glean storage. That means that to persist values, we need to store just the values that are stored in the histogram instead.

    NOTE This function lives in this class rather than utils so that we can avoid any circular dependencies.

    Parameters

    • values: number[] = []

      The values to be used to construct the Histogram.

    • rangeMin: number

      The minimum number in the distribution.

    • rangeMax: number

      The maximum number in the distribution.

    • bucketCount: number

      The number of total buckets.

    Returns Histogram

    An exponential histogram containing all accumulated values.

Generated using TypeDoc