ReservoirResult
@Serializable
@SerialName(value = "ReservoirResult")
Reservoir sampling snapshot.
values holds the retained sample (size up to capacity); keys holds the parallel A-Res priority keys used to drive merging. totalSeen and totalWeight count every observed update, not just retained ones.
Constructors
Link copied to clipboard
constructor(values: DoubleArray, keys: DoubleArray, capacity: Int, totalSeen: Long, totalWeight: Double)
Properties
Functions
Link copied to clipboard
Linear-interpolated quantile at probability from a reservoir sample (treats sample as unweighted).
Link copied to clipboard
Bucket the retained sample into binCount equal-width bins between min and max.
ReservoirResult
constructor(values: DoubleArray, keys: DoubleArray, capacity: Int, totalSeen: Long, totalWeight: Double)(source)
capacity
keys
Parallel A-Res priority keys used to drive merging.
totalSeen
totalWeight
Cumulative observation weight folded in.
values
Retained sample values; length up to capacity.