recommendNumBins

fun recommendNumBins(numObs: Double, min: Double, max: Double, stdDev: Double): Int

Recommends a suitable number of bins for a histogram.

Parameters

numObs

the number of observations to bin, must be greater than 1

min

the minimum of the data's observations

max

the maximum of the data's observations

stdDev

an estimate of the standard deviation of the observations