DEmpirical RV
Secondary constructor for the DEmpiricalRV class. This constructor initializes the object using a list of ProbPoint
instances, representing the possible values and their associated probabilities, as well as their cumulative probabilities.
Parameters
A list of ProbPoint
objects that encapsulate the possible values, their probabilities, and cumulative probabilities.
The number identifying the random number stream to be used. Defaults to 0.
A provider interface for random number streams, defaults to KSLRandom.DefaultRNStreamProvider
.
Optional name for the instance, providing a descriptive identifier.
Secondary constructor for the DEmpiricalRV class, allowing initialization using a histogram and optional parameters.
Parameters
An instance of HistogramIfc providing midpoints and bin fractions for initialization.
An optional stream number used for identifying the random number stream, defaulting to 0.
A random number stream provider of type RNStreamProviderIfc, with a default value of KSLRandom.DefaultRNStreamProvider.
An optional name for this random variable instance, defaulting to null.
Parameters
array to select from
the cumulative probability associated with each element of array
the random number stream number, defaults to 0, which means the next stream
the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider
an optional name