faif
|
#include <Predictions.hpp>
Public Member Functions | |
PredictionAR (const TimeSeriesDigit &history, const ARDef &definition) | |
virtual | ~PredictionAR () |
virtual void | accept (PredictionVisitor &v) const |
const ARDef & | getARDef () const |
const TimeSeriesDigit & | getHistory () const |
const TimeValueDigit & | getHistoricalValue (DigitTime t) const |
TimeSeriesDigit | calculatePrediction (DigitTime from, DigitTime to) |
the auto-regressive (AR) computation block
f(t+1) = a(t)f(t) + a(t-1)f(t-1) + ... + a(t-n+1)f(t-n+1) or f(t+1) = a[0]f(t) + a[1]f(t-1) + ... a[n-1]f(t-n+1)
|
inline |
c-tor
|
inlinevirtual |
d-tor
|
inlinevirtual |
visitor pattern
Implements faif::timeseries::Prediction.
|
inline |
accessor
References faif::timeseries::Prediction::getHistoricalValue().
Referenced by faif::timeseries::operator<<().
|
inlineinherited |
accessor
References faif::timeseries::Prediction::accept().
Referenced by faif::timeseries::PredictionKNN::accept().
|
inlineinherited |
find the value for t (the lower_bound)
References faif::timeseries::TimeValueDigit::getTime().
Referenced by faif::timeseries::PredictionKNN::accept(), faif::timeseries::Prediction::calculatePrediction(), and getARDef().
|
inlineinherited |
calculate the prediction for period <from, to>, values for negative timestamp are readed from the history
References faif::timeseries::Prediction::getHistoricalValue().