ModalityAnalyzer

constructor(data: DoubleArray, numBins: Int = defaultNumBins, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider)(source)

Parameters

data

the observations, which need not be sorted

numBins

how many cells the data is binned into

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to the library's shared provider. Supply a provider of its own to an analyzer that must be independent of everything else drawing from the shared one — which is what concurrent callers need, since a stream is not safe to share between threads.