PWCEmpiricalRVParameters

Defines the parameters for a piecewise constant empirical random variable (PWCEmpiricalRV) used in creating instances of random variables that follow a piecewise constant empirical distribution.

This class extends RVParameters and specifies the required parameters for the PWCEmpiricalRV, including breakpoints and their associated proportions, which describe the empirical distribution.

The fillParameters method initializes the default values for the breakpoints and proportions arrays. These can be modified as needed before the random variable is created.

The createRVariable method creates an instance of PWCEmpiricalRV using the configured parameters and provides it with the specified random stream.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun createDistribution(): PWCEmpiricalCDF
Link copied to clipboard
open override fun createRVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): RVariableIfc