kumulant

LinearCountingResult

@Serializable
@SerialName(value = "LinearCountingResult")
data class LinearCountingResult(val estimate: Double, val bits: Int, val unsetBits: Long, val words: LongArray, val totalSeen: Long) : Result(source)

Linear-counting bitset snapshot. estimate = -bits * ln(unsetBits / bits); saturates to Double.POSITIVE_INFINITY when every bit is set. words is the raw bitset for lossless merging.

Constructors

Link copied to clipboard
constructor(estimate: Double, bits: Int, unsetBits: Long, words: LongArray, totalSeen: Long)

Properties

Link copied to clipboard
val bits: Int

Total bitset size in bits.

Link copied to clipboard

Estimated cardinality -bits * ln(unsetBits / bits).

Link copied to clipboard

Total observations the sketch has absorbed.

Link copied to clipboard

Number of bits still cleared; saturates the estimator as it shrinks to zero.

Link copied to clipboard

Packed bitset (bits / 64 longs); mergeable via word-wise OR.

LinearCountingResult

constructor(estimate: Double, bits: Int, unsetBits: Long, words: LongArray, totalSeen: Long)(source)

bits

Total bitset size in bits.

estimate

Estimated cardinality -bits * ln(unsetBits / bits).

totalSeen

Total observations the sketch has absorbed.

unsetBits

Number of bits still cleared; saturates the estimator as it shrinks to zero.

words

Packed bitset (bits / 64 longs); mergeable via word-wise OR.