void ARARForecast(TVec *Data, TVec *Phi, TVec *Filter, const int tau, const int l1, const int l2, const int l3, const double SMean, const int N, TVec *aResult, TVec *StdErrs, double &RMSE);
Forecast time series by ARAR.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | Defines original time series. |
| 2 | Phi | TVec * | Defines ARAR model Phi coefficients (phi[0],phi[1],phi[2],phi[3]). |
| 3 | Filter | TVec * | Defines memory shortening filter, obtained from memory-shortening operation. In case no memory-shortening is performed, set filter to 1.0 by using Filter.SetIt([1.0]). |
| 4 | tau | const int | Defines memory-shortening optimal lag, obtained from memory-shortening operation. In case no memory-shortening is performed, set it to 1. |
| 5 | l1 | const int | Defines optimal lag for phi[l1] (see equation above). |
| 6 | l2 | const int | Defines optimal lag for phi[l2] (see equation above). |
| 7 | l3 | const int | Defines optimal lag for phi[l3] (see equation above). |
| 8 | SMean | const double | Defines memory-shortened series mean. |
| 9 | N | const int | Defines number of forecasts. |
| 10 | aResult | TVec * | Returns forecasts. Size and complex properties of Result are adjusted automatically. |
| 11 | StdErrs | TVec * | Returns forecasts standard errors. Size and complex properties of StdErrs are adjusted automatically. |
| 12 | RMSE | double & | Returns fit root mean square error (RMSE). |
Remarks:
Forecast time series values by using ARAR model, defined by the following relation:
Declared in Dew::Stats::Units::StatTimeSerAnalysis · Dew.Stats/Units.StatTimeSerAnalysis.h · Cross-compiler