Previous Next


Statistics Property (RDKResults Object)

Description

Returns a collection of statistics about the simulated result.

Syntax

object.Statistics

Arguments

None.

Return Value

(RDKStatistics) – the result statistics. The RDKStatistics is defined as:

Public Type RDKStatistics  
NumDataPoints As Long number of data points collected for the result
NumErrors As Long number of data points that were errors
Minimum As Double the result minimum.
Maximum As Double the result maximum.
Mean As Double the result mean.
StdDeviation As Double the result std deviation.
Variance As Double the result variance.
Skewness As Double the result skewness.
Kurtosis As Double the result kurtosis.
Mode As Double the approximate result mode.
Percentiles (1 to 19) the 5th, 10th, …,95th percentiles of the result
End Type  

Example

'Get the mean and standard deviation of myOutput:
Dim m as Double, sd as Double
With RDKApp.Outputs("myOutput").Results.Statistics
    m = .Mean
    sd = .StdDeviation
End With