StatTimeSerAnalysis::TripleExpForecast Function

Overload List

#SignatureDescription
1void TripleExpForecast(TVec *Y, TVec *YHat, const double Alpha, const double Beta, const double Gamma, int T, const int Period);Triple exponential forecast.
2void TripleExpForecast(TVec *Y, TVec *YHat, double &Alpha, double &Beta, double &Gamma, const int T, double &MSE, const int Period);First estimate Alpha, Beta and Gamma parameters by triple exponential smoothing and then use returned values to forecast up to T periods.

Overload 1: void TripleExpForecast(TVec *Y, TVec *YHat, const double Alpha, const double Beta, const double Gamma, int T, const int Period);

Triple 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.
4Betaconst doubleTrend smoothing parameter used for forecast.
5Gammaconst doubleSeasonal smoothing parameter used for forecast.
6TintForecast values up to T period.
7Periodconst intPeriod length. An exception is raised if Y.Length mod Period is not 0.
Remarks:

The h period ahead forecast is given by:

F[t+h]=(S[t]+hb[t])L[tP].F[t+h] = (S[t]+h\cdot b[t])L[t-P] \quad .

where P is period length.

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

Overload 2: void TripleExpForecast(TVec *Y, TVec *YHat, double &Alpha, double &Beta, double &Gamma, const int T, double &MSE, const int Period);

First estimate Alpha, Beta and Gamma parameters by triple exponential 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.
4Betadouble &Trend smoothing parameter used for forecast.
5Gammadouble &Seasonal smoothing parameter used for forecast.
6Tconst intForecast values up to T period.
7MSEdouble &MSE, evaluated at minimum.
8Periodconst intPeriod length. An exception is raised if Y.Length mod Period is not 0.
Remarks:

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

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