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) : Result(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

Link copied to clipboard
constructor(depth: Int, width: Int, seed: Long, counters: LongArray, totalSeen: Long, hasher: HasherRef = HasherRef.SplitMix64)

Properties

Link copied to clipboard
Link copied to clipboard
val depth: Int
Link copied to clipboard

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

Link copied to clipboard
val seed: Long
Link copied to clipboard
Link copied to clipboard
val width: Int

Functions

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.

CountMinSketchResult

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

counters

depth

hasher

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

seed

totalSeen

width