This function creates or changes an alternate parameter set for continuous distributions (listed in Table 53). The function returns a value used by CB.DefineAssumND.
If you use CB.DefineAltParms to define an alternate parameter set using only percentiles, you will not be able to retrieve parameter values with CB.GetAssum. |
Table 49. CB.DefineAltParms Returned Data Type
An encoded integer that indicates the distribution and parameter set that CB.DefineAssumND should use |
Table 50. CB.DefineAltParms Parameters
Integer value or named constant. See Table 53. | Specifies a distribution type for the assumption. The number of parameters varies with the distribution type. See Table 53 for types and associated parameters. | ||
Double value or named constant. See Table 51, following. | Specifies the alternate parameters used to define the distribution. You must supply three parameters whether or not the distribution needs three. That is, if a distribution uses only one or two parameters, you must still supply three, using the cbParmNone parameter to round out the argument list. For more information, see Table 51. | ||
Specifies an optional fourth alternate parameter, currently required only for the beta distribution |
The following constant and index values (shown in Table 51) can be used with Parm1, Parm2, Parm3, and Parm4 described in Table 50.
Table 51. CB.DefineAltParms Parm1 Through Parm4 Constant and Index Values
Placeholder in the parameter list for distributions that require fewer than three parameters. This parameter must come at the end of the argument list. See the examples for how to use this parameter. | ||
Regular parameter for the distribution (for example, the mean or standard deviation for the normal distribution). You can’t use this parameter for lognormal distributions. | ||
Location parameter. See Table 53. | ||
Scale parameter. See Table 53. | ||
Alpha parameter. See Table 53. | ||
Beta parameter. See Table 53. | ||
Shape parameter. See Table 53. | ||
Rate value. See Table 53. | ||
Midpoint value. See Table 53 | ||
Degrees of freedom value. See Table 53 | ||
Percentile value. Add the desired percentile to this parameter; for example, cbParmPercentile + 80 indicates the 80th percentile. |
Because there are three alternate parameter sets (in addition to percentiles) for the lognormal distribution, the cbParmRegular named constant cannot be passed to CB.DefineAltParms when setting up an alternate parameter set for the lognormal distribution. You must explicitly set the parameter set with, for example, cbParmLogMean and cbParmLogStDev. cbParmMode is included to support the extreme value distribution for backward compatibility with Crystal Ball 2000.x (5.x). In later versions of Crystal Ball , that distribution is replaced with the maximum extreme and minimum extreme distributions. cbParmMode is deprecated in this version of Crystal Ball and is obsolete in a future version. |