# CountMinSketchMetadata

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:16](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L16)

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

## Extended by

* [`BytesCountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/bytescountminsketch/)
* [`StringCountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/stringcountminsketch/)
* [`Uint32CountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/uint32countminsketch/)
* [`Uint64CountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/uint64countminsketch/)

## Properties

### kind

> `readonly` **kind**: `"count-min-sketch"`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:17](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L17)

***

### scalarKind

> `readonly` **scalarKind**: `"string"` | `"uint32"` | `"uint64"` | `"bytes"`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:18](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L18)

***

### width

> `readonly` **width**: `number`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:20](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L20)

Effective power-of-two column count.

***

### depth

> `readonly` **depth**: `number`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:22](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L22)

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

***

### epsilon

> `readonly` **epsilon**: `number`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:24](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L24)

Model-based additive error factor `e / width`.

***

### confidence

> `readonly` **confidence**: `number`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:26](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L26)

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

***

### counterBits

> `readonly` **counterBits**: `32`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:28](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L28)

Counter width, fixed at 32 bits.

***

### totalWeight

> `readonly` **totalWeight**: `number`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:30](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L30)

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

***

### stateByteLength

> `readonly` **stateByteLength**: `number`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:32](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L32)

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

***

### seed

> `readonly` **seed**: `bigint`

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:34](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L34)

XXH64 base seed that participates in merge compatibility.

***

### seedSchedule

> `readonly` **seedSchedule**: [`SeedScheduleIdentity`](/reference/knotkit/scalar-sketch/type-aliases/seedscheduleidentity/)

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:36](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L36)

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