• 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.

    • logBase: number

      The base of the logarithm used to determine bucketing.

    • bucketsPerMagnitude: number

      The buckets per each order of magnitude of the logarithm.

    Returns Histogram

    A new Histogram containing all the values.

Generated using TypeDoc