ITimeSeries.CalculationType

Fore Syntax

CalculationType: MsCalculationType;

Fore.NET Syntax

CalculationType: Prognoz.Platform.Interop.Ms.MsCalculationType;

Description

The CalculationType property determines the calculation mode.

Comments

The property is outdated, use ITsCalculationContext.CalculationType.

Fore Example

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.

Fore.NET Example

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:

ITimeSeries