addControlVariate

fun addControlVariate(rvSource: RandomVariableCIfc, meanValue: Double, controlAlias: String = rvSource.name): ResponseCIfc(source)

If the random source doesn't exist in the model then an error occurs

Return

the control as a response

Parameters

rvSource

the RandomSourceCIfc to add as a control. It must be a RandomVariable in the model

meanValue

the mean of the control.

controlAlias

the alias to use for the control. By default, it is the name of the RandomSourceCIfc.


fun addControlVariate(randomVariableName: String, meanValue: Double): ResponseCIfc(source)

If the RandomVariable doesn't exist in the model then an error occurs

Return

the name of the control response or null

Parameters

randomVariableName

the name of the RandomVariable to add as a control

meanValue

the mean of the RandomVariable