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(probData: List<ProbPoint>, stream: RNStreamIfc = KSLRandom.nextRNStream(), name: String? = null)
constructor(probData: List<ProbPoint>, streamNum: Int, name: String? = null)


constructor(histogram: HistogramIfc, streamNum: Int)

Parameters

histogram

a histogram specifying the midpoints and bin fractions

streamNum

the stream number


constructor(histogram: HistogramIfc, stream: RNStreamIfc = KSLRandom.nextRNStream())

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