modeCount

fun modeCount(data: DoubleArray, bandwidth: Double, numBins: Int = defaultNumBins): Int(source)

The mode count of a Gaussian kernel estimate of the supplied data at a bandwidth.

Stateless, over data supplied by the caller, following PDFModeler's companion. Builds an analyzer internally, so a caller asking repeatedly should hold one instead.

Parameters

data

the observations

bandwidth

the smoothing bandwidth

numBins

how many cells to bin into