Skip to content

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:16

Read-only configuration and live frequency metadata shared by every scalar variant.

readonly kind: "count-min-sketch"

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:17


readonly scalarKind: "string" | "uint32" | "uint64" | "bytes"

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:18


readonly width: number

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:20

Effective power-of-two column count.


readonly depth: number

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:22

Effective prefix-stable row count, from 1 through 32.


readonly epsilon: number

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:24

Model-based additive error factor e / width.


readonly confidence: number

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:26

Model-based per-query confidence lower bound 1 - exp(-depth).


readonly counterBits: 32

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:28

Counter width, fixed at 32 bits.


readonly totalWeight: number

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:30

Accepted sum of update weights, capped at 2^32 - 1.


readonly stateByteLength: number

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:32

Bytes occupied by row-major counters, excluding object and hash-instance overhead.


readonly seed: bigint

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:34

XXH64 base seed that participates in merge compatibility.


readonly seedSchedule: SeedScheduleIdentity

Defined in: packages/scalar-sketch/src/count-min-sketch.ts:36

Prefix-stable row-seed schedule that participates in merge compatibility.