Modeller: IExpressModeller;
Modeller: Prognoz.Platform.Interop.Modeller.IExpressModeller;
The Modeller property returns common parameters of the Summary Statistics Calculation method.
Common parameters enable the user to edit the data headers and get access to the report history.
To execute the example, add a link to the Modeller system assembly.
Example is a procedure that contains one input parameter Sett that is an object that determines Summary Statistics Calculation method parameters.
Sub StSeries(Sett: IEmStatisticsSettings);
Var
ExprModeller: IExpressModeller;
ModSeries: IEmSeries;
j: Integer;
Header: IEmHeader;
Begin
ExprModeller := Sett.Modeller;
ModSeries := ExprModeller.Series;
If ModSeries.Count > 0 Then
Header := ExprModeller.Header;
Debug.WriteLine("Header elements:");
For j := 0 To Header.Count - 1 Do
Debug.WriteLine(Header.Value[j]);
End For;
ExprModeller.EvaluateMethod("C:\Statistics.html", Sett, True);
Else
Debug.WriteLine("Data is missing");
End If;
End Sub StSeries;
Example execution result: data of the header that is used in the method, that is specified in the input parameter, calculation results report, is displayed in the console window. The summary statistics calculation report is output to the C:\Statistics.html file.
Example is a procedure that contains one input parameter Sett that is an object that determines Summary Statistics Calculation method parameters.
Imports Prognoz.Platform.Interop.Modeller;
…
Public Shared Sub StSeries(Sett: IEmStatisticsSettings);
Var
ExprModeller: IExpressModeller;
ModSeries: IEmSeries;
j: Integer;
Header: IEmHeader;
Begin
ExprModeller := Sett.Modeller;
ModSeries := ExprModeller.Series;
If ModSeries.Count > 0 Then
Header := ExprModeller.Header;
System.Diagnostics.Debug.WriteLine("Header elements:");
For j := 0 To Header.Count - 1 Do
System.Diagnostics.Debug.WriteLine(Header.Value.GetValue(j));
End For;
ExprModeller.EvaluateMethod("C:\Statistics.html", Sett, True);
Else
System.Diagnostics.Debug.WriteLine("Data is missing");
End If;
End Sub StSeries;
Example execution result: data of the header that is used in the method, that is specified in the input parameter, calculation results report, is displayed in the console window. The summary statistics calculation report is output to the C:\Statistics.html file.
See also: