Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ZeroDeltaPrediction Class Reference

A dummy prediction method. More...

#include <prediction.h>

Inheritance diagram for ZeroDeltaPrediction:

PredictionStrategy List of all members.

Public Methods

virtual void train (const Matrix &traindata, int startmonth)
virtual Ref< Matrix > predict (const Matrix &testdata, int startmonth) const
virtual int inputMonths () const

Detailed Description

A dummy prediction method.

This prediction method doesn't really predict anything -- it always predicts the same value as in the previous month.

Any sensible method should do better than this.

Definition at line 267 of file prediction.h.


Member Function Documentation

Ref< Matrix > predict const Matrix &    testdata,
int    startmonth
const [virtual]
 

Tests the data and returns the monthly predictions in matrix.

Must be implemented by prediction strategies.

Parameters:
startmonth  See train().

Reimplemented from PredictionStrategy.

Definition at line 323 of file prediction.cc.

void train const Matrix &    traindata,
int    startmonth
[virtual]
 

Trains the learning method with the given data.

Must be implemented by prediction strategies.

Parameters:
startmonth  Zero-based month number for the first sample in the data. The month number can be in range 0-11, but only the last two digits are interpreted as months, so it can have values like 199905 or 9905.

Reimplemented from PredictionStrategy.

Definition at line 320 of file prediction.cc.


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:06:46 2005 for Inanna by doxygen1.2.18