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