A class to perform single exponential smoothing on a time series. More...
#include <forecast.h>

Public Member Functions | |
void | applyForecast (Forecast *, const Date[], unsigned int, bool) |
double | generateForecast (Forecast *fcst, const double history[], unsigned int count, const double weight[], bool debug) |
string | getName () |
SingleExponential (double a=initial_alfa) | |
Static Public Member Functions | |
static void | setInitialAlfa (double x) |
static void | setMaxAlfa (double x) |
static void | setMinAlfa (double x) |
Detailed Description
A class to perform single exponential smoothing on a time series.
Definition at line 362 of file forecast.h.
Constructor & Destructor Documentation
module_forecast::Forecast::SingleExponential::SingleExponential | ( | double | a = initial_alfa | ) | [inline] |
Constructor.
Definition at line 390 of file forecast.h.
Member Function Documentation
void module_forecast::Forecast::SingleExponential::applyForecast | ( | Forecast * | forecast, |
const Date | buckets[], | ||
unsigned int | bucketcount, | ||
bool | debug | ||
) | [virtual] |
Forecast value updating.
Implements module_forecast::Forecast::ForecastMethod.
Definition at line 287 of file timeseries.cpp.
double module_forecast::Forecast::SingleExponential::generateForecast | ( | Forecast * | fcst, |
const double | history[], | ||
unsigned int | count, | ||
const double | weight[], | ||
bool | debug | ||
) | [virtual] |
Forecast evaluation.
Implements module_forecast::Forecast::ForecastMethod.
Definition at line 196 of file timeseries.cpp.
string module_forecast::Forecast::SingleExponential::getName | ( | ) | [inline, virtual] |
The name of the method.
Implements module_forecast::Forecast::ForecastMethod.
Definition at line 427 of file forecast.h.
static void module_forecast::Forecast::SingleExponential::setInitialAlfa | ( | double | x | ) | [inline, static] |
Update the initial value for the alfa parameter.
Definition at line 404 of file forecast.h.
static void module_forecast::Forecast::SingleExponential::setMaxAlfa | ( | double | x | ) | [inline, static] |
Update the maximum value for the alfa parameter.
Definition at line 420 of file forecast.h.
static void module_forecast::Forecast::SingleExponential::setMinAlfa | ( | double | x | ) | [inline, static] |
Update the minimum value for the alfa parameter.
Definition at line 412 of file forecast.h.
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
