CalculationType: MsCalculationType;
CalculationType: Prognoz.Platform.Interop.Ms.MsCalculationType;
The CalculationType property determines the calculation mode.
The property is outdated, use ITsCalculationContext.CalculationType.
This example describes custom method. The data series is passed by points.
Public Function UserFunc(Input: ITimeSeries): Double;
Var
i: Integer;
Begin
If Input.CalculationType = MsCalculationType.Pointwise Then
If Input.PointCount > 0 Then
i := Input.CurrentIndex;
Return Math.Log10(Input.Item(i));
End If;
End If;
End Function UserFunc;
The method returns the natural series logarithm.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Ms;
Imports Prognoz.Platform.Interop.Transform;
Public Function UserFunc(Input: ITimeSeries): Double;
Var
i: Integer;
Begin
If Input.CalculationType = MsCalculationType.mctPointwise Then
If Input.PointCount > 0 Then
i := Input.CurrentIndex;
Return Math.Log10(Input.Item[i] As double);
End If;
End If;
End Function UserFunc;
See also: