Included: Boolean;
Included: boolean;
The Included property determines whether the composite element is used to calculate expression.
Available values:
True. The element is used to calculate expression.
False. The element is not used to calculate expression.
Executing the example requires a form with the following components:
LanerBox with the LanerBox1 identifier.
LanerResultsBox with the LanerResultsBox1 identifier.
UiErAnalyzer, which is a data source for LanerBox and LanerResultsBox.
A workbook of time series database must be loaded to UiErAnalyzer. Add links to the Transform and Ms system assemblies.
Before executing the example the workbook must contain only one selected series calculated by the linear regression method.
Sub UserProc;
Var
Results: ILanerResultsBoxResults;
Coefficients: ILanerResultsBoxCoefficients;
i: Integer;
FactorTerm: ITsCompositeFormulaTerm;
LSerie: ILanerSerie;
Begin
Results := LanerResultsBox1.Results;
Coefficients := Results.Coefficients;
For i := 0 To Coefficients.TermCount - 1 Do
FactorTerm := Coefficients.FactorTerm(i);
If FactorTerm.Included Then
(FactorTerm As IMsCompositeFormulaTerm).ChangeLag(2);
End If;
End For;
LSerie := LanerBox1.SelectedSeries(0);
(LSerie As ILanerCalculateSerie).RefreshData;
End Sub UserProc;
After executing the example the lag is changed for linear regression factors used in calculation. Linear regression is recalculated.
Executing the example requires a form with the following components:
LanerBoxNet with the LanerBoxNet1 identifier.
LanerResultBoxNet with the LanerResultBoxNet1 identifier.
UiErAnalyzerNet, which is a data source for LanerBoxNet and LanerResultBoxNet.
A workbook of time series database must be loaded to UiErAnalyzerNet. Add links to the Transform and Ms system assemblies.
Before executing the example the workbook must contain only one selected series calculated by the linear regression method.
Imports Prognoz.Platform.Interop.Transform;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Laner;
Imports Prognoz.Platform.Interop.Ms;
…
Public Sub UserProc();
Var
Results: ILanerResultsBoxResults;
Coefficients: ILanerResultsBoxCoefficients;
i: Integer;
FactorTerm: ITsCompositeFormulaTerm;
LSerie: ILanerSerie;
Begin
Results := LanerResultBoxNet1.CtrlBox.Results;
Coefficients := Results.Coefficients;
For i := 0 To Coefficients.TermCount - 1 Do
FactorTerm := Coefficients.FactorTerm[i];
If FactorTerm.Included Then
(FactorTerm As IMsCompositeFormulaTerm).ChangeLag(2);
End If;
End For;
LSerie := LanerBoxNet1.SelectedSeries[0];
(LSerie As ILanerCalculateSerie).RefreshData();
End Sub
After executing the example the lag is changed for linear regression factors used in calculation. Linear regression is recalculated.
See also: