# bytesCountMinSketch

> **bytesCountMinSketch**(`options?`): [`BytesCountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/bytescountminsketch/)

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

Create a byte-array-specialized Count-Min sketch.

## Parameters

### options?

[`CountMinSketchOptions`](/reference/knotkit/scalar-sketch/interfaces/countminsketchoptions/) = `{}`

## Returns

[`BytesCountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/bytescountminsketch/)

## Throws

With `INVALID_PROBABILITY`, `INVALID_DIMENSION`, or `STATE_TOO_LARGE` for invalid options.

## Throws

From `knotkit/hash` for an invalid seed.
