createBreakPoints

fun createBreakPoints(lowerLimit: Double, upperLimit: Double, numBins: Int): DoubleArray

Divides the range equally across the number of bins.

Return

the break points

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


fun createBreakPoints(lowerLimit: Double, numBins: Int, width: Double): DoubleArray

Return

the constructed break points

Parameters

numBins

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

lowerLimit

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

width

the width of each bin, must be greater than 0