module_forecast::Forecast::MovingAverage Class Reference

A class to calculate a forecast based on a moving average. More...

#include <forecast.h>

Inheritance diagram for module_forecast::Forecast::MovingAverage:
module_forecast::Forecast::ForecastMethod

List of all members.

Public Member Functions

void applyForecast (Forecast *, const Date[], unsigned int, bool)
double generateForecast (Forecast *fcst, const double history[], unsigned int count, const double madWeight[], bool debug)
string getName ()
 MovingAverage (int i=defaultbuckets)

Static Public Member Functions

static void setDefaultBuckets (int x)

Detailed Description

A class to calculate a forecast based on a moving average.

Definition at line 258 of file forecast.h.


Constructor & Destructor Documentation

module_forecast::Forecast::MovingAverage::MovingAverage ( int  i = defaultbuckets  )  [inline]

Constructor.

Definition at line 274 of file forecast.h.


Member Function Documentation

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

Forecast value updating.

Implements module_forecast::Forecast::ForecastMethod.

Definition at line 135 of file timeseries.cpp.

double module_forecast::Forecast::MovingAverage::generateForecast ( Forecast fcst,
const double  history[],
unsigned int  count,
const double  madWeight[],
bool  debug 
) [virtual]

Forecast evaluation.

Implements module_forecast::Forecast::ForecastMethod.

Definition at line 105 of file timeseries.cpp.

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

The name of the method.

Implements module_forecast::Forecast::ForecastMethod.

Definition at line 295 of file forecast.h.

static void module_forecast::Forecast::MovingAverage::setDefaultBuckets ( int  x  )  [inline, static]

Update the initial value for the alfa parameter.

Definition at line 288 of file forecast.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208