kumulant

LinearCounting

@Serializable
@SerialName(value = "LinearCounting")
data class LinearCounting(val bits: Int = 4096, val hasher: HasherRef = HasherRef.SplitMix64) : DiscreteStatSpec<LinearCountingResult> (source)

Spec for LinearCountingStat: cardinality estimator backed by a bitset of bits cells.

Constructors

LinearCounting

constructor(bits: Int = 4096, hasher: HasherRef = HasherRef.SplitMix64)(source)

Properties

bits

Bitset size; trade-off between memory and accuracy near the saturation cap.

hasher

HasherRef for the mixer applied before indexing; resolved via the Hashers registry.