faif
Public Member Functions | List of all members
faif::timeseries::PredictionKNN Class Reference

#include <Predictions.hpp>

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

Public Member Functions

 PredictionKNN (const TimeSeriesDigit &history, const KNNDef &definition)
 
const KNNDefgetKNNDef () const
 
virtual void accept (PredictionVisitor &v) const
 
const TimeSeriesDigitgetHistory () const
 
const TimeValueDigitgetHistoricalValue (DigitTime t) const
 
TimeSeriesDigit calculatePrediction (DigitTime from, DigitTime to)
 

Detailed Description

memory based predictor

Member Function Documentation

const KNNDef& faif::timeseries::PredictionKNN::getKNNDef ( ) const
inline

accessor

Referenced by faif::timeseries::operator<<().

virtual void faif::timeseries::PredictionKNN::accept ( PredictionVisitor v) const
inlinevirtual
const TimeSeriesDigit& faif::timeseries::Prediction::getHistory ( ) const
inlineinherited

accessor

References faif::timeseries::Prediction::accept().

Referenced by accept().

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

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

References faif::timeseries::Prediction::getHistoricalValue().


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