# sampleMean

> **sampleMean**(`values`): `number`

Defined in: [packages/distribution/src/sample-statistics.ts:110](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/distribution/src/sample-statistics.ts#L110)

Arithmetic mean, computed as a running mean so large values cannot overflow the sum.

## Parameters

### values

[`NumericSample`](/reference/knotkit/distribution/type-aliases/numericsample/)

## Returns

`number`

## Throws

`INVALID_SAMPLE` when `values` is empty or holds a non-finite value.
