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
Type: D

InputRange of numerical values

num_bins
Type: ushort

number of bins in the histogram returned

bin_min
Type: float

lower bound of the histogram range

bin_max
Type: float

higher bound of the histogram range

bins
Type: float[]

intervals [a, b[ used for binning

normalized
Type: bool

whether or not the histogram is normalized by its sum

Meta