IMsMedianSmoothingTransform.InputTerm

Syntax

InputTerm: IMsFormulaTermInfo;

Description

The InputTerm property determines parameters of the input term corresponding to input variable.

Comments

The property is outdated, use IMsMethodSeries.Input.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. The container includes a variable with the VAR_MONTH identifier and a model with the MODEL identifier. The model uses the method of median smoothing for calculation.

Sub Main;

Var

Metabase: IMetabase;

ModelspaceDescr: IMetabaseObjectDescriptor;

Model: IMsModel;

Trans: IMsFormulaTransform;

Formula: IMsFormula;

MedianSmoothing: IMsMedianSmoothingTransform;

Input_Var: IVariableStub;

iVar: IMsFormulaTransformVariable;

Slice: IMsFormulaTransformSlice;

Info: IMsFormulaTermInfo;

Begin

Metabase := MetabaseClass.Active;

ModelspaceDescr := Metabase.ItemById("MODEL_SPACE");

Model := Metabase.ItemByIdNamespace("MODEL", ModelspaceDescr.Key).Edit As IMsModel;

Trans := Model.Transform;

Formula := Trans.FormulaItem(0);

MedianSmoothing := Formula.Method As IMsMedianSmoothingTransform;

Input_Var := Metabase.ItemByIdNamespace("VAR_MONTH", ModelspaceDescr.Key).Bind As IVariableStub;

iVar := Trans.Inputs.Add(Input_Var);

Slice := iVar.Slices.Add(Null);

Info := Trans.CreateTermInfo;

Info.Slice := Slice;

MedianSmoothing.InputTerm := Info;

(Model As IMetabaseObject).Save;

End Sub Main;

After executing the example the source series data is extracted from the VAR_MONTH variable.

See also:

IMsMedianSmoothingTransform