bin

abstract fun bin(x: Double): HistogramBin

The bin that x falls in. The bin is a copy. It will not reflect observations collected after this call.

Return

bin that x falls in

Parameters

x

the data to check


abstract fun bin(binNum: Int): HistogramBin

Returns an instance of a Bin for the supplied bin number The bin does not reflect changes to the histogram after this call. May throw IndexOutOfBoundsException

Return

the bin, or null

Parameters

binNum

the bin number to get