# stringHyperLogLog

> **stringHyperLogLog**(`options?`): [`StringHyperLogLog`](/reference/knotkit/scalar-sketch/interfaces/stringhyperloglog/)

Defined in: [packages/scalar-sketch/src/hyperloglog.ts:149](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/hyperloglog.ts#L149)

Create a string-specialized HyperLogLog.

## Parameters

### options?

[`HyperLogLogOptions`](/reference/knotkit/scalar-sketch/interfaces/hyperloglogoptions/) = `{}`

## Returns

[`StringHyperLogLog`](/reference/knotkit/scalar-sketch/interfaces/stringhyperloglog/)

## Throws

With `INVALID_PRECISION` or `STATE_TOO_LARGE` for invalid options.

## Throws

From `knotkit/hash` for an invalid seed.
