CalculationType: MsCalculationType;
CalculationType: Prognoz.Platform.Interop.Ms.MsCalculationType;
Свойство CalculationType определяет режим расчета.
Свойство устарело, используйте ITsCalculationContext.CalculationType.
В данном примере описан пользовательский метод. Ряд данных передается поточечно.
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;
Метод возвращает натуральный логарифм ряда.
Необходимые требования и результат выполнения примера Fore.NET совпадают с примером Fore.
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;
См. также: