Abstract base class for all forecasting methods. More...
#include <forecast.h>
Public Member Functions | |
virtual void | applyForecast (Forecast *, const Date[], unsigned int, bool)=0 |
virtual double | generateForecast (Forecast *, const double[], unsigned int, const double[], bool)=0 |
virtual string | getName ()=0 |
Abstract base class for all forecasting methods.
Definition at line 238 of file forecast.h.
virtual void module_forecast::Forecast::ForecastMethod::applyForecast | ( | Forecast * | , | |
const | Date[], | |||
unsigned | int, | |||
bool | ||||
) | [pure virtual] |
This method is called when this forecast method has generated the lowest forecast error and now needs to set the forecast values.
Implemented in module_forecast::Forecast::MovingAverage, module_forecast::Forecast::SingleExponential, and module_forecast::Forecast::DoubleExponential.
virtual double module_forecast::Forecast::ForecastMethod::generateForecast | ( | Forecast * | , | |
const | double[], | |||
unsigned | int, | |||
const | double[], | |||
bool | ||||
) | [pure virtual] |
Forecast evaluation.
Implemented in module_forecast::Forecast::MovingAverage, module_forecast::Forecast::SingleExponential, and module_forecast::Forecast::DoubleExponential.
virtual string module_forecast::Forecast::ForecastMethod::getName | ( | ) | [pure virtual] |
The name of the method.
Implemented in module_forecast::Forecast::MovingAverage, module_forecast::Forecast::SingleExponential, and module_forecast::Forecast::DoubleExponential.