Skip to content

CountMinSketchOptions

CountMinSketchOptions<T> = object

Defined in: packages/data/src/probabilistic/count-min-sketch.ts:3

T

optional delta?: number

Defined in: packages/data/src/probabilistic/count-min-sketch.ts:15

Probability that an estimate exceeds the epsilon bound. Defaults to 0.001. Depth is ceil(ln(1 / delta)).


optional epsilon?: number

Defined in: packages/data/src/probabilistic/count-min-sketch.ts:10

Tolerated over-estimate, as a fraction of the total count added. Defaults to 0.001. Width is ceil(e / epsilon), so halving this doubles memory.


hash: Hash32<T>

Defined in: packages/data/src/probabilistic/count-min-sketch.ts:5

See Hash32: required, and why it cannot be defaulted.