Skip to content

Interface: SketchDimensions

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Streaming / SketchDimensions

Interface: SketchDimensions

Defined in: src/types/streaming.ts:16

Shape of a Count-Min sketch — either explicit dimensions or (ε, δ) accuracy.

Properties

delta?

optional delta: number | null

Defined in: src/types/streaming.ts:22

Failure probability δ ∈ (0, 1). The estimated count overestimates the true count by at most ε · N with probability 1 − δ. Optional / nullable.


depth?

optional depth: number | null

Defined in: src/types/streaming.ts:24

Number of hash rows. Must be ≥ 1 when provided. Optional / nullable.


epsilon?

optional epsilon: number | null

Defined in: src/types/streaming.ts:28

Additive-error bound ε ∈ (0, 1). Optional / nullable.


width?

optional width: number | null

Defined in: src/types/streaming.ts:30

Number of buckets per row. Must be ≥ 1 when provided. Optional / nullable.