HyperLogLogOptions
HyperLogLogOptions<
T> =object
Defined in: packages/data/src/probabilistic/hyper-log-log.ts:3
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”hash:
Hash32<T>
Defined in: packages/data/src/probabilistic/hyper-log-log.ts:5
See Hash32: required, and why it cannot be defaulted.
precision?
Section titled “precision?”
optionalprecision?:number
Defined in: packages/data/src/probabilistic/hyper-log-log.ts:14
Register-index bits, 4 .. 16. Defaults to 12.
The estimator uses 2 ** precision one-byte registers, and its relative
error is about 1.04 / sqrt(2 ** precision) — so 12 costs 4 KiB for
roughly 1.6% error, and each extra bit halves the error while doubling the
memory.