Class TDigest

Class representing a t-Digest for approximate quantile estimation.

Constructors

  • Creates a new TDigest instance.

    Parameters

    • Optionaldelta: number = 0.01

      The compression parameter affecting quantile accuracy.

    • Optionalcompression: number = 100

      The maximum number of centroids before compression.

    Returns TDigest

Methods

  • Calculates the cumulative distribution function (CDF) for a given value.

    Parameters

    • value: number

      The value to calculate the CDF for.

    Returns number

    The estimated probability of being less than or equal to the value.