SketchResult
DDSketch snapshot: logarithmic bins plus precomputed quantiles for probabilities.
Constructors
SketchResult
Properties
gamma
negativeBins
Negative-side bin counts keyed by signed log-bucket index.
positiveBins
Positive-side bin counts keyed by signed log-bucket index.
probabilities
Probabilities at which quantiles are evaluated; parallel to quantiles.
quantiles
Estimated quantile values, parallel to probabilities.
totalWeights
Cumulative observation weight folded in, equal to zeroCount plus the sum of positiveBins and negativeBins. Reported for convenience, not tracked independently: merge folds in the bins and the zero bucket and recomputes this, so a hand-built result whose total disagrees with its bins contributes only its bins.
zeroCount
True when totalWeights is not positive, including zero, negative values, and NaN.
Functions
equals
hashCode
toString
Scores value against the quantile precomputed at probability: 1.0 above it, otherwise 0.0. A NaN value or quantile scores zero.
Project a SketchResult into a SparseHistogramResult by expanding its bin indices to bucket boundaries.