module_forecast::Forecast::Croston Class Reference

A class to calculate a forecast with Croston's method. More...

#include <forecast.h>

Inheritance diagram for module_forecast::Forecast::Croston:

List of all members.

Public Member Functions

void applyForecast (Forecast *, const Date[], unsigned int, bool)
 Croston (double a=initial_alfa)
double generateForecast (Forecast *fcst, const double history[], unsigned int count, const double weight[], bool debug)
string getName ()

Static Public Member Functions

static double getMinIntermittence ()
static void setInitialAlfa (double x)
static void setMaxAlfa (double x)
static void setMinAlfa (double x)
static void setMinIntermittence (double x)

Detailed Description

A class to calculate a forecast with Croston's method.

Definition at line 786 of file forecast.h.


Constructor & Destructor Documentation

module_forecast::Forecast::Croston::Croston ( double  a = initial_alfa) [inline]

Constructor.

Definition at line 817 of file forecast.h.


Member Function Documentation

void module_forecast::Forecast::Croston::applyForecast ( Forecast forecast,
const Date  buckets[],
unsigned int  bucketcount,
bool  debug 
) [virtual]

Forecast value updating.

Implements module_forecast::Forecast::ForecastMethod.

Definition at line 823 of file timeseries.cpp.

double module_forecast::Forecast::Croston::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 722 of file timeseries.cpp.

static double module_forecast::Forecast::Croston::getMinIntermittence ( ) [inline, static]

Return the minimum intermittence before applying this method.

Definition at line 863 of file forecast.h.

string module_forecast::Forecast::Croston::getName ( ) [inline, virtual]

The name of the method.

Implements module_forecast::Forecast::ForecastMethod.

Definition at line 865 of file forecast.h.

static void module_forecast::Forecast::Croston::setInitialAlfa ( double  x) [inline, static]

Update the initial value for the alfa parameter.

Definition at line 831 of file forecast.h.

static void module_forecast::Forecast::Croston::setMaxAlfa ( double  x) [inline, static]

Update the maximum value for the alfa parameter.

Definition at line 847 of file forecast.h.

static void module_forecast::Forecast::Croston::setMinAlfa ( double  x) [inline, static]

Update the minimum value for the alfa parameter.

Definition at line 839 of file forecast.h.

static void module_forecast::Forecast::Croston::setMinIntermittence ( double  x) [inline, static]

Update the minimum intermittence before applying this method.

Definition at line 855 of file forecast.h.


The documentation for this class was generated from the following files:

Documentation generated for frePPLe by  doxygen