• Produces a histogram from a list of numbers. Because we need to create several histograms of different datasets and want to compare them, we do not accept the number of bins desired and calculate the bin-size from the data (via Math.ceil((max - min + 1) / bins)). Instead, we require the bin-size to be given. There always will be an extra bin for the minimum value.

    Parameters

    • name: string
    • binSize: number
    • values: number[]

    Returns Histogram