void ARARFit(TVec *S, TVec *Phi, int &l1, int &l2, int &l3, double &Sigma2, const int MaxLag);
Fit ARAR algorithm.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | TVec * | Memory-shortened time series. If no memory-shortening was performed, then S defines the original unshortened time series. |
| 2 | Phi | TVec * | Returns ARAR model phi coefficients (phi[1],phi[l1],phi[l2],phi[l3]). Size of Phi vector is adjusted automatically (4). |
| 3 | l1 | int & | Returns ARAR model phil1 lag. |
| 4 | l2 | int & | Returns ARAR model phil2 lag. |
| 5 | l3 | int & | Returns ARAR model phil3 lag. |
| 6 | Sigma2 | double & | Returns ARAR model estimated WN variance. |
| 7 | MaxLag | const int | Defines upper limit for l3, where 1 < l1 < l2 < l3 <= MaxLag. |
Remarks:
Fit ARAR algorithm to (optionaly) memory-shortened series. Let S[t] denote memory-shortened series, derived from Y[t] and let avg(S) denote sample mean of S[t]. The ARAR algorithm tries to fit an autoregressive (AR) process to the mean-corrected series:
The fitted model then has the form:
where Z[t] is WN(0,sigma2).
Declared in Dew::Stats::Units::StatTimeSerAnalysis · Dew.Stats/Units.StatTimeSerAnalysis.h · Cross-compiler