faif
|
#include <Predictions.hpp>
Public Member Functions | |
Prediction (const TimeSeriesDigit &history) | |
const TimeSeriesDigit & | getHistory () const |
virtual void | accept (PredictionVisitor &v) const =0 |
const TimeValueDigit & | getHistoricalValue (DigitTime t) const |
TimeSeriesDigit | calculatePrediction (DigitTime from, DigitTime to) |
base class to comp block
|
inline |
|
pure virtual |
the visitor pattern for Prediction hierarchy
Implemented in faif::timeseries::PredictionKNN, and faif::timeseries::PredictionAR.
Referenced by getHistory(), and faif::timeseries::operator<<().
|
inline |
find the value for t (the lower_bound)
References faif::timeseries::TimeValueDigit::getTime().
Referenced by faif::timeseries::PredictionKNN::accept(), calculatePrediction(), and faif::timeseries::PredictionAR::getARDef().
|
inline |
calculate the prediction for period <from, to>, values for negative timestamp are readed from the history
References getHistoricalValue().