DEmpiricalList

constructor(elements: List<T>, theCDF: DoubleArray, stream: RNStreamIfc = KSLRandom.nextRNStream())

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

stream

the underlying random number stream to use for randomness