Import std.math.stats
Histogram
function
@PanicsAtCaller Public Function Histogram<T: Bounded>(values: T[], bins: Int, low: Double, high: Double): Int[]
How many values fall in each of bins equal ranges from low to high, the last range
holding high too; those outside, and NaN, are left out. A count of bins that isn't above 0,
or a low that isn't below high, or isn't finite, panics.
Examples
Expect(Histogram([1, 2, 2, 3, 9], 2, 0, 10) == [4, 1])function
@PanicsAtCaller Public Function Histogram<T: Bounded>(values: T[], bins: Int): Int[]
How many values fall in each of bins equal ranges from the least value to the largest, which
all do. No values, a NaN or an infinite one, or a count of bins that isn't above 0, panics.
Report an issue with this page or with FutureBlitz on GitHub.