DEmpiricalRV

constructor(values: DoubleArray, cdf: DoubleArray, streamNum: Int)

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(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