DEmpirical RV
Randomly selects from the array using the supplied cdf
Parameters
values
array to select from
cdf
the cumulative probability associated with each element of array
stream Num
the stream number
constructor(values: DoubleArray, cdf: DoubleArray, stream: RNStreamIfc = KSLRandom.nextRNStream(), name: String? = null)
Parameters
values
array to select from
cdf
the cumulative probability associated with each element of array
stream
the source of randomness