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(probData: List<ProbPoint>, stream: RNStreamIfc = KSLRandom.nextRNStream(), name: String? = null)
Parameters
histogram
a histogram specifying the midpoints and bin fractions
stream Num
the stream number
Parameters
histogram
a histogram specifying the midpoints and bin fractions
stream
the source of randomness
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