ForecastStartDate: DateTime;
The ForecastStartDate property returns forecasting period start date for series.
This example describes custom method. The data series is passed as a whole.
Public Function UserFunc(Input: ITimeSeries; Output: ITimeSeries);
Var
I, First: Integer;
Begin
First := Input.DateToIndex(Input.ForecastStartDate);
For I := Input.StartIndex To Input.EndIndex Do
If Input.DateToIndex(Input.ForecastStartDate) <= I Then
Output(I) := Input(First - 1);
End If;
End For;
End Function UserFunc;
The method returns the forecast series values that repeat the last series value in retrospective period.
See also: