assessModality

fun assessModality(numBootstrapSamples: Int = ModalityAnalyzer.defaultNumBootstrapSamples, streamNumber: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider): ModalityAssessment(source)

How many modes the data appears to have, and whether that appearance survives smoothing.

A method rather than a property because it bootstraps and the rest do not. PDFModeler draws the same line: what is cheap is a property, what costs resamples is called.

Parameters

numBootstrapSamples

how many resamples the test draws

streamNumber

the random number stream, so the result is reproducible

streamProvider

the provider of that stream