kumulant

CountMinSketchResult

@Serializable
@SerialName(value = "CountMinSketchResult")
data class CountMinSketchResult(val depth: Int, val width: Int, val seed: Long, val counters: LongArray, val totalSeen: Long, val hasher: HasherRef = HasherRef.SplitMix64) : HasObservationCount(source)

CountStat-MinStat sketch snapshot. counters is the depth x width matrix of counters in row-major order. seed determines the per-row hash salts; merging two snapshots requires identical depth, width, and seed. totalSeen is the unweighted update count.

Constructors

CountMinSketchResult

constructor(depth: Int, width: Int, seed: Long, counters: LongArray, totalSeen: Long, hasher: HasherRef = HasherRef.SplitMix64)(source)

Properties

counters

depth

hasher

Reference to the LongHasher that produced the counters; resolved by estimate.

seed

totalSeen

totalWeights

open override val totalWeights: Double(source)

Cumulative weight of observations folded into this result.

width

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

Estimated weighted count of value - the minimum across rows. Re-derives the per-row index with the same LongHasher the sketch used (resolved by name via Hashers), so a custom hasher must be registered before querying.