Signature
histogram(values, options?: HistogramOptions): HistogramDatahistogram(values, options?: HistogramOptions): HistogramDatahistogram([1, 1, 2, 2, 2, 4], { binCount: 3 });[
[
1.5,
2
],
[
2.5,
3
],
[
3.5,
1
]
]Options for deriving histogram bins from raw samples.
type HistogramOptions = {
/** Positive integer bin count. Defaults to Sturges' formula. */
binCount?: number;
};binCountPositive integer bin count. Defaults to Sturges' formula.
Related executable examples: Histogram bins