IMsCurveEstimationTransform.ExtrapolateType

Syntax

ExtrapolateType: DependenceType;

Description

The ExtrapolateType property determines a trend extrapolation form.

Comments

Extrapolation is an approximate determination of the function values f(x) at points x that are outside the interval [x0,xn], by its values at points x0 <>x1 <>xn.

Extrapolation form is determined by value of the DependenceType enumeration. The following forms are used for the universal trend:

Example

Executing the example requires that the repository contains a modeling container with the OBJ_MS identifier containing a model with the MODEL identifier. The model is calculated using the universal trend.

Add links to the Ms, Metabase, and Stat system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    MsDescrKey: Integer;
    Model: IMsModel;
    ModelTrans: IMsFormulaTransform;
    Formula: IMsFormula;
    CurveEstimation: IMsCurveEstimationTransform;
Begin
    Mb := MetabaseClass.Active;
    MsDescrKey := Mb.ItemById("OBJ_MS").Key;
    // Get model
    Model := MB.ItemByIdNamespace("MODEL", MsDescrKey).Edit As IMsModel;
    ModelTrans := Model.Transform;
    // Set up model calculation parameters
    Formula := ModelTrans.FormulaItem(0);
    CurveEstimation := Formula.Method As IMsCurveEstimationTransform;
    CurveEstimation.ExtrapolateType := DependenceType.Value;
    CurveEstimation.Value := 31.3;
    // Save model calculation parameters
    (Model As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the model for trend calculation uses extrapolation by the specified value.

See also:

IMsCurveEstimationTransform