---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/statistics/variables/statsHistogramTool.md
description: Bin a numeric array into equal-width histogram buckets.
---

# Variable: statsHistogramTool

```ts
const statsHistogramTool: Tool<SpooledArtifact>;
```

Defined in: [batteries/tools/statistics/index.ts:294](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/statistics/index.ts#L294)

Bin a numeric array into equal-width histogram buckets.

## Remarks

Output is a text histogram showing each bin's range, count, percentage of total, and a bar
chart. The last bin is inclusive on both ends; preceding bins are half-open. `bins` is clamped
to `[2, 100]`.
