Previous Next


Sampling Distributions with an RDKDistribution Object

You can also define a RDKDistribution object and sample from it. For example

    Dim distObj as New RDKDistribution
    
    With distObj    
        .RiskFunction = "RiskNormal(100,10)"
        x = .Sample
    End With

draws a sample from a Normal(100,10) distribution and assigns it to variable x. As with the first example of sampling from a RISK distribution function, the result of this sample in not stored with an input, and thus can not use Latin Hypercube sampling or be used in later analyses.