Algosim documentation: histogram

histogram

Creates a histogram.

Syntax

Description

If data is a sequence or list of real numbers then histogram(data) creates a histogram for this data.

The chart is shown in the current diagram and a reference to the chart is returned.

Examples

H ≔ histogram(compute(mean(compute(RandomReal(), n, 1, 10)), n, 1, 1000000));
AdjustVisual(H, "bin width": 0.01)

Image 1

AdjustVisual(H, "bin width": 0.001)

Image 2

See also