histogram

Compute the histogram of an InputRange using uniform bins

float[]
histogram
(
D
)
(,
ushort num_bins
,
float bin_min
,
float bin_max
,
out float[] bins
,
bool normalized = false
)
if (
isInputRange!D &&
isNumeric!(ElementType!D)
)

Parameters

vals D

InputRange of numerical values

num_bins ushort

number of bins in the histogram returned

bin_min float

lower bound of the histogram range

bin_max float

higher bound of the histogram range

bins float[]

intervals [a, b[ used for binning

normalized bool

whether or not the histogram is normalized by its sum

Meta