#include <prediction.h>
Inheritance diagram for PreviousYearsAvg:
Public Methods | |
virtual void | train (const Matrix &traindata, int startmonth) |
virtual Ref< Matrix > | predict (const Matrix &testdata, int startmonth) const |
virtual int | inputMonths () const |
A trivial prediction method that predicts, for each month in the predicted year, the average value of the particular month in the past years.
Any sophisticated prediction method should do better than this.
Definition at line 200 of file prediction.h.
|
Tests the data and returns the monthly predictions in matrix. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 538 of file prediction.cc. |
|
Trains the learning method with the given data. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 522 of file prediction.cc. |