create

fun create(upperLimit: Double, numBins: Int): HistogramIfc

Create a histogram with lower limit set to zero

Return

the histogram

Parameters

upperLimit

the upper limit of the last bin, cannot be positive infinity

numBins

the number of bins to create, must be greater than 0


fun create(lowerLimit: Double, upperLimit: Double, numBins: Int): HistogramIfc

Create a histogram

Return

the histogram

Parameters

lowerLimit

lower limit of first bin, cannot be negative infinity

upperLimit

the upper limit of the last bin, cannot be positive infinity

numBins

the number of bins to create, must be greater than 0


fun create(lowerLimit: Double, upperLimit: Double, numBins: Int, name: String?): HistogramIfc

Create a histogram with the given name based on the provided values

Return

the histogram

Parameters

lowerLimit

lower limit of first bin, cannot be negative infinity

upperLimit

the upper limit of the last bin, cannot be positive infinity

numBins

the number of bins to create, must be greater than zero

name

the name of the histogram


fun create(lowerLimit: Double, numBins: Int, width: Double): HistogramIfc

Return

the created histogram

Parameters

numBins

the number of bins to make, must be greater than zero

lowerLimit

the lower limit of the first bin, cannot be negative infinity

width

the width of each bin, must be greater than zero


fun create(array: DoubleArray, breakPoints: DoubleArray = recommendBreakPoints(array), name: String? = null): Histogram

Creates a default histogram based on default break points for the supplied data