MixtureRV

constructor(list: List<RVariableIfc>, cdf: DoubleArray, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Parameters

list

a list holding the random variables to select from

cdf

the cumulative probability associated with each element of the list

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider

name

an optional name