CB.GetFitParm

This function returns the value of the specified distribution parameter for the last CB.Fit.

Table 114. CB.GetFitParm Returned Data Type

Returned Value

Returned Data Type

The distribution parameter for the last CB.Fit, as specified by Index

Variant

Note:

Before calling this function, call CB.Fit, or the function returns 0.

CB.GetFitParm has one parameter, Index, an integer. The Index parameter specifies which distribution parameter value to return. Its has only four values: 1, 2, 3, and 4. The following table shows which values are returned for each distribution.

Table 115. CB.GetFitParm Index Parameter Values — Required, Integer

Last Distribution

Index = 1 returns...

Index = 2 returns...

Index = 3 returns...

Index = 4 returns...

Normal

mean

standard deviation

n/a

n/a

Triangular

minimum

likeliest

maximum

n/a

Lognormal

mean

standard deviation

location

n/a

Uniform

minimum

maximum

n/a

n/a

Exponential

rate

n/a

n/a

n/a

Weibull

location

scale

shape

n/a

Beta

alpha

beta

maximum

minimum

Gamma

location

scale

shape

n/a

Logistic

mean

scale

n/a

n/a

Pareto

location

shape

n/a

n/a

Extreme value

likeliest

scale

max (True) or min (False)

n/a

Minimum extreme value

likeliest

scale

n/a

n/a

Maximum extreme value

likeliest

scale

n/a

n/a

Student’s t

midpoint

scale

degrees of freedom

n/a

BetaPERT

minimum

likeliest

maximum

n/a

Note:

The parameters for beta have changed since Crystal Ball 2000.x (5.x). There are now four parameters. Extreme value is deprecated. It is included for Crystal Ball 2000.5 (5.5) compatibility and is replaced by cbDfaMinExtreme and cbDfaMaxExtreme in later versions of Crystal Ball. Beginning with version 11.1.1.0.00, the lognormal distribution has three parameters instead of two. If this call is used in a model that was created in an earlier version of Crystal Ball, the third parameter has a value of 0.