add Control Variate
fun addControlVariate(rvSource: RandomSourceCIfc, meanValue: Double, controlAlias: String = rvSource.name): ResponseCIfc
If the random source doesn't exist in the model then an error occurs
Return
the control as a response
Parameters
rv Source
the RandomSourceCIfc to add as a control. It must be a RandomVariable in the model
mean Value
the mean of the control.
control Alias
the alias to use for the control. By default, it is the name of the RandomSourceCIfc.
If the RandomVariable doesn't exist in the model then an error occurs
Return
the name of the control response or null
Parameters
random Variable Name
the name of the RandomVariable to add as a control
mean Value
the mean of the RandomVariable