Kontrast provides a function that generates histograms from arrays of numbers.
Interactive code example
The function is called as
options is an object with the following properties:
numberThe lower limit of the smallest bin.
numberThe upper limit of the largest bin.
numberArrayA numeric array of the values to be collected in the histogram.
numberThe number of bins.
Float64ArrayThe center position of each bin.
Float64ArrayThe lower position of each bin.
Float64ArrayThe upper position of each bin.
Float64ArrayThe edge positions of the bins.
Float64ArrayThe number of counts of each bin.
Float64ArrayThe (normalized) density of each bin.
numberThe number of data points that are within the range (i.e., between
numberThe number of data points that are outside the histogram range.
numberThe number of non-finite data points.