Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
#include <multi_dim_least_squares.hpp>
Public Member Functions | |
Least_Squares_Method_2D () | |
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_2D () |
Static Public Member Functions | |
static StatisticalMethod_Internal * | create () |
Private Attributes | |
unsigned int | degree_of_polynomial_ |
bool | polynomial_computed_ |
alglib::real_1d_array | objHeArray_ |
Definition at line 18 of file multi_dim_least_squares.hpp.
Definition at line 17 of file multi_dim_least_squares.cpp.
Referenced by create().
Definition at line 21 of file multi_dim_least_squares.cpp.
const EstimatedTime hype::core::Least_Squares_Method_2D::computeEstimation | ( | const Tuple & | input_values | ) | [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 23 of file multi_dim_least_squares.cpp.
References objHeArray_, and polynomial_computed_.
static StatisticalMethod_Internal* hype::core::Least_Squares_Method_2D::create | ( | ) | [inline, static] |
Definition at line 31 of file multi_dim_least_squares.hpp.
References Least_Squares_Method_2D().
Referenced by hype::core::PluginLoader::loadPlugins().
bool hype::core::Least_Squares_Method_2D::inTrainingPhase | ( | ) | const throw () [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 53 of file multi_dim_least_squares.cpp.
References polynomial_computed_.
bool hype::core::Least_Squares_Method_2D::recomuteApproximationFunction | ( | Algorithm & | algorithm | ) | [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 61 of file multi_dim_least_squares.cpp.
References hype::util::begin_ptr(), hype::core::AlgorithmStatistics::executionHistory_, hype::core::Algorithm::getAlgorithmStatistics(), hype::core::MeasurementPairRingbuffer::getColumnFeatureValues(), hype::core::MeasurementPairRingbuffer::getColumnMeasurements(), objHeArray_, and polynomial_computed_.
void hype::core::Least_Squares_Method_2D::retrain | ( | ) | [virtual] |
Implements hype::core::StatisticalMethod_Internal.
Definition at line 57 of file multi_dim_least_squares.cpp.
References polynomial_computed_.
unsigned int hype::core::Least_Squares_Method_2D::degree_of_polynomial_ [private] |
Definition at line 39 of file multi_dim_least_squares.hpp.
alglib::real_1d_array hype::core::Least_Squares_Method_2D::objHeArray_ [private] |
Definition at line 41 of file multi_dim_least_squares.hpp.
Referenced by computeEstimation(), and recomuteApproximationFunction().
bool hype::core::Least_Squares_Method_2D::polynomial_computed_ [private] |
Definition at line 40 of file multi_dim_least_squares.hpp.
Referenced by computeEstimation(), inTrainingPhase(), recomuteApproximationFunction(), and retrain().