kumulant

TDigestResult

@Serializable
@SerialName(value = "TDigestResult")
data class TDigestResult(val probabilities: DoubleArray, val quantiles: DoubleArray, val means: DoubleArray, val weights: DoubleArray, val totalWeight: Double, val compression: Double) : HasObservationCount(source)

T-digest snapshot: means/weights are the centroid arrays sorted by mean, with quantiles precomputed for probabilities via CDF inversion.

Constructors

TDigestResult

constructor(probabilities: DoubleArray, quantiles: DoubleArray, means: DoubleArray, weights: DoubleArray, totalWeight: Double, compression: Double)(source)

Properties

compression

T-digest compression parameter; lower = more centroids, tighter quantiles.

means

Centroid means sorted ascending; parallel to weights.

probabilities

Probabilities at which quantiles are evaluated; parallel to quantiles.

quantiles

Estimated quantile values, parallel to probabilities.

totalWeight

Cumulative observation weight folded in.

totalWeights

open override val totalWeights: Double(source)

Cumulative weight of observations folded into this result.

weights

Centroid weights, parallel to means.

Link copied to clipboard
open val isEmpty: Boolean

True when no observation has been folded in, so every other field is a placeholder.

Functions

equals

open operator override fun equals(other: Any?): Boolean(source)

hashCode

open override fun hashCode(): Int(source)

toString

open override fun toString(): String(source)
Link copied to clipboard

Convert centroids to a sparse histogram with bins centered on each centroid.