Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
#include <least_squares.hpp>
Public Member Functions | |
Least_Squares_Method_1D () | |
virtual const EstimatedTime | computeEstimation (const Tuple &input_values) |
virtual bool | recomuteApproximationFunction (Algorithm &algorithm) |
virtual bool | inTrainingPhase () const throw () |
virtual void | retrain () |
virtual | ~Least_Squares_Method_1D () |
Static Public Member Functions | |
static StatisticalMethod_Internal * | create () |
Private Attributes | |
alglib::barycentricinterpolant | timeestimationpolynomial_ |
unsigned int | degree_of_polynomial_ |
bool | polynomial_computed_ |
Definition at line 18 of file least_squares.hpp.
Definition at line 12 of file least_squares.cpp.
Referenced by create().
Definition at line 16 of file least_squares.cpp.
const EstimatedTime hype::core::Least_Squares_Method_1D::computeEstimation | ( | const Tuple & | input_values | ) | [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 18 of file least_squares.cpp.
References polynomial_computed_, and timeestimationpolynomial_.
static StatisticalMethod_Internal* hype::core::Least_Squares_Method_1D::create | ( | ) | [inline, static] |
Definition at line 31 of file least_squares.hpp.
References Least_Squares_Method_1D().
Referenced by hype::core::PluginLoader::loadPlugins().
bool hype::core::Least_Squares_Method_1D::inTrainingPhase | ( | ) | const throw () [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 32 of file least_squares.cpp.
References polynomial_computed_.
bool hype::core::Least_Squares_Method_1D::recomuteApproximationFunction | ( | Algorithm & | algorithm | ) | [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 40 of file least_squares.cpp.
References degree_of_polynomial_, hype::core::AlgorithmStatistics::executionHistory_, hype::core::Algorithm::getAlgorithmStatistics(), hype::core::MeasurementPairRingbuffer::getColumnFeatureValues(), hype::core::MeasurementPairRingbuffer::getColumnMeasurements(), polynomial_computed_, quiet, and timeestimationpolynomial_.
void hype::core::Least_Squares_Method_1D::retrain | ( | ) | [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 36 of file least_squares.cpp.
References polynomial_computed_.
unsigned int hype::core::Least_Squares_Method_1D::degree_of_polynomial_ [private] |
Definition at line 39 of file least_squares.hpp.
Referenced by recomuteApproximationFunction().
bool hype::core::Least_Squares_Method_1D::polynomial_computed_ [private] |
Definition at line 40 of file least_squares.hpp.
Referenced by computeEstimation(), inTrainingPhase(), recomuteApproximationFunction(), and retrain().
alglib::barycentricinterpolant hype::core::Least_Squares_Method_1D::timeestimationpolynomial_ [private] |
Definition at line 38 of file least_squares.hpp.
Referenced by computeEstimation(), and recomuteApproximationFunction().