kumulant

CountMinSketch

@Serializable
@SerialName(value = "CountMinSketch")
data class CountMinSketch(val depth: Int = StatDefaults.COUNT_MIN_SKETCH_DEPTH, val width: Int = StatDefaults.COUNT_MIN_SKETCH_WIDTH, val seed: Long = StatDefaults.COUNT_MIN_SKETCH_SEED, val hasher: HasherRef = HasherRef.SplitMix64) : DiscreteStatSpec<CountMinSketchResult> (source)

Spec for CountMinSketchStat: approximate frequency table for unbounded-cardinality streams.

Constructors

CountMinSketch

constructor(depth: Int = StatDefaults.COUNT_MIN_SKETCH_DEPTH, width: Int = StatDefaults.COUNT_MIN_SKETCH_WIDTH, seed: Long = StatDefaults.COUNT_MIN_SKETCH_SEED, hasher: HasherRef = HasherRef.SplitMix64)(source)

Properties

depth

Number of independent hash rows.

hasher

HasherRef for the mixer applied per row; resolved via the Hashers registry.

seed

PRNG seed used to derive the per-row hash salts.

width

Number of counter columns per row.