DEmpiricalList

constructor(elements: List<T>, theCDF: DoubleArray, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider)

Parameters

the type of elements in the list
elements

the list of elements must not be null

theCDF

an array holding the cumulative probabilities across the elements in the list

streamNum

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

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider