faif
Public Member Functions | List of all members
faif::timeseries::Prediction Class Referenceabstract

#include <Predictions.hpp>

Inheritance diagram for faif::timeseries::Prediction:
Inheritance graph
Collaboration diagram for faif::timeseries::Prediction:
Collaboration graph

Public Member Functions

 Prediction (const TimeSeriesDigit &history)
 
const TimeSeriesDigitgetHistory () const
 
virtual void accept (PredictionVisitor &v) const =0
 
const TimeValueDigitgetHistoricalValue (DigitTime t) const
 
TimeSeriesDigit calculatePrediction (DigitTime from, DigitTime to)
 

Detailed Description

base class to comp block

Member Function Documentation

const TimeSeriesDigit& faif::timeseries::Prediction::getHistory ( ) const
inline

accessor

References accept().

Referenced by faif::timeseries::PredictionKNN::accept().

virtual void faif::timeseries::Prediction::accept ( PredictionVisitor v) const
pure virtual

the visitor pattern for Prediction hierarchy

Implemented in faif::timeseries::PredictionKNN, and faif::timeseries::PredictionAR.

Referenced by getHistory(), and faif::timeseries::operator<<().

const TimeValueDigit& faif::timeseries::Prediction::getHistoricalValue ( DigitTime  t) const
inline
TimeSeriesDigit faif::timeseries::Prediction::calculatePrediction ( DigitTime  from,
DigitTime  to 
)
inline

calculate the prediction for period <from, to>, values for negative timestamp are readed from the history

References getHistoricalValue().


The documentation for this class was generated from the following file: