Previous Next


DefaultDistribution Property (RDKInput Object)

Description

Returns an RDKDistribution object, which is the "default" distribution for this input. If the input has no default distribution, Nothing is returned. A default distribution is generally assigned to an input (using the DefineDefaultDistribution method) before a simulation is run, and then is automatically sampled for you each iteration of a simulation. During your program's Iteration Event, you can retrieve the sample for the input, using the Value property of the input.

Syntax

object.DefaultDistribution

Arguments

None.

Return Value

(RDKDistribution) – the default distribution object or Nothing.

Example

'Return the @RISK function of the Default Distribution for myInput
defDistString = RDKInputs("myInput").DefaultDistribution.RiskFunction