#include <prediction.h>
Inheritance diagram for AverageDeltaPrediction:
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 somewhat trivial relative prediction method that calculates the monthly changes in previous years, takes a monthly average of them, and applies them to the predicted year.
This has proven to be a rather good prediction method for many cases.
Definition at line 221 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 295 of file prediction.cc. |
|
Trains the learning method with the given data. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 264 of file prediction.cc. References PredictionStrategy::rowDeltas(). |