StatTimeSerAnalysis::DoubleExpForecast Function

Overload List

#SignatureDescription
1void DoubleExpForecast(TVec *Y, TVec *YHat, const double Alpha, const double Gamma, const int T, const int InitMethod = 0);Double exponential forecast.
2void DoubleExpForecast(TVec *Y, TVec *YHat, double &Alpha, double &Gamma, const int T, double &MSE, const int InitMethod = 0);First estimate Alpha and Gamma parameters by double smoothing and then use returned values to forecast up to T periods.

Overload 1: void DoubleExpForecast(TVec *Y, TVec *YHat, const double Alpha, const double Gamma, const int T, const int InitMethod = 0);

Double exponential forecast.

#NameTypeDescription
1YTVec *Time series data set.
2YHatTVec *Time series forecasts. Size of the YHat vector are adjusted automatically.
3Alphaconst doubleOveral smoothing parameter used for forecast.
4Gammaconst doubleTrend smoothing parameter used for forecast.
5Tconst intForecast values up to T period.
6InitMethod = 0const intDefines how the initial values for b[0] are calculated.
Remarks:

Forecasts time series values by using double exponential smoothing equations. For double exponential smoothing, the h period ahead forecast is given by:

F[t+h]=S[t]+hb[t].F[t+h] = S[t]+h\cdot b[t] \quad .
See Also: StatTimeSerAnalysis::DoubleExpSmooth
Declared in Dew::Stats::Units::StatTimeSerAnalysis · Dew.Stats/Units.StatTimeSerAnalysis.h · Cross-compiler

Overload 2: void DoubleExpForecast(TVec *Y, TVec *YHat, double &Alpha, double &Gamma, const int T, double &MSE, const int InitMethod = 0);

First estimate Alpha and Gamma parameters by double smoothing and then use returned values to forecast up to T periods.

#NameTypeDescription
1YTVec *Time series data set.
2YHatTVec *Time series forecasts. Size of the YHat vector are adjusted automatically.
3Alphadouble &Overal smoothing parameter used for forecast.
4Gammadouble &Trend smoothing parameter used for forecast.
5Tconst intForecast values up to T period.
6MSEdouble &MSE, evaluated at minimum.
7InitMethod = 0const intDefines how the initial values for b[0] are calculated.
Remarks:

Use this routine if you don't know the best estimates for Alpha and Gamma.

Declared in Dew::Stats::Units::StatTimeSerAnalysis · Dew.Stats/Units.StatTimeSerAnalysis.h · Cross-compiler