faif
|
#include <Predictions.hpp>
Public Member Functions | |
PredictionKNN (const TimeSeriesDigit &history, const KNNDef &definition) | |
const KNNDef & | getKNNDef () const |
virtual void | accept (PredictionVisitor &v) const |
const TimeSeriesDigit & | getHistory () const |
const TimeValueDigit & | getHistoricalValue (DigitTime t) const |
TimeSeriesDigit | calculatePrediction (DigitTime from, DigitTime to) |
memory based predictor
|
inline |
accessor
Referenced by faif::timeseries::operator<<().
|
inlinevirtual |
the visitor pattern for Prediction hierarchy
Implements faif::timeseries::Prediction.
References faif::timeseries::Prediction::getHistoricalValue(), faif::timeseries::Prediction::getHistory(), faif::timeseries::KNNDef::getK(), and faif::timeseries::KNNDef::getRefSize().
|
inlineinherited |
|
inlineinherited |
find the value for t (the lower_bound)
References faif::timeseries::TimeValueDigit::getTime().
Referenced by accept(), faif::timeseries::Prediction::calculatePrediction(), and faif::timeseries::PredictionAR::getARDef().
|
inlineinherited |
calculate the prediction for period <from, to>, values for negative timestamp are readed from the history
References faif::timeseries::Prediction::getHistoricalValue().