Skip to content
1 min read · 51 words

Variable: statsHistogramTool

ts
const statsHistogramTool: Tool<SpooledArtifact>;

Defined in: batteries/tools/statistics/index.ts:294

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].