TimeSeries.CreateLevel

Syntax

CreateLevel(CalendarLevel: DimCalendarLevel);

Parameters

CalendarLevel. Series calendar frequency.

Description

The CreateLevel constructor creates a series with set calendar frequency.

Comments

Use the TimeSeries.Create default constructor to create a series without additional parameters.

Example

A custom series calculation method is given in the example. To execute the example, add a link to the Dimensions system assembly.

Function TimeCalendLvl(Input: ITimeSeries): ITimeSeries;
Var
    i: Integer;
    pSeries: ITimeSeries;
Begin
    pSeries := New TimeSeries.CreateLevel(DimCalendarLevel.Year);
    If pSeries.CheckCompatible(Input, TrueThen
        For i := pSeries.StartIndex To pSeries.EndIndex Do
            pSeries.Item(i) := 1 + Input.Item(i);
        End For;
    End If;
    Return pSeries;
End Function TimeCalendLvl;

The method increases input series values if it is compatible with the user calculation method context.

See also:

TimeSeries