AsArray: Array;
The AsArray property returns or gets a data series with excluded days off.
The property is relevant for series with daily calendar frequency.
This example shows the user calculation method for a series with daily frequency. To execute the example, add links to the Ms, Transform system assemblies.
Function UserAsArray(Input: ITimeSeries): ITimeSeries;
Var
pContext: ITsCalculationContext;
i: Integer;
pSeries: ITimeSeries;
SerieArray: Array Of Double;
Begin
pContext := TsCalculation.Current;
pSeries := pContext.CreateTimeSeries;
SerieArray := Input.AsArray;
For i := 0 To SerieArray.Length - 1 Do
pSeries.Item(i) := 1 + SerieArray[i];
End For;
Return pSeries;
End Function UserAsArray;
The method increases series values that correspond to working days.
See also: