CreateLevel(CalendarLevel: DimCalendarLevel);
CalendarLevel. Series calendar frequency.
The CreateLevel constructor creates a series with set calendar frequency.
Use the TimeSeries.Create default constructor to create a series without additional parameters.
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, True) Then
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: