RandomEmpiricalMap

constructor(parent: ModelElement, map: Map<K, V>, theCDF: DoubleArray, streamNum: Int = 0, name: String? = null)

Allows randomly selecting with equal probability from the elements of the map.

Parameters

parent

the parent of this element

map

the elements in the map

theCDF

the CDF for the elements in the map

streamNum

the stream number to use from the provider. The default is 0, which is the next stream.

name

the optional name of the model element