Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE

This class represents an information collection of an algorithm. Hence, it is the central place where all statistical information for one algorithm is stored. More...
#include <algorithm_statistics.hpp>
Public Member Functions  
AlgorithmStatistics ()  
bool  writeToDisc (const std::string &operation_name, const std::string &algorithm_name) const 
Public Attributes  
MeasurementPairRingbuffer  executionHistory_ 
std::vector< double >  relative_errors_ 
unsigned int  number_of_recomputations_ 
unsigned int  number_of_decisions_for_this_algorithm_ 
double  average_relative_error_ 
double  total_execution_time_ 
unsigned int  number_of_terminated_executions_of_this_algorithm_ 
Private Member Functions  
AlgorithmStatistics (const AlgorithmStatistics &)  
AlgorithmStatistics &  operator= (const AlgorithmStatistics &) 
Static Private Member Functions  
static void *  operator new (size_t size) 
static void  operator delete (void *ptr) 
The algorithm and the operation the algorithm belongs to are responsible to update the statistical information. Note, that a stemod::core::AlgorithmMeasurement object is used for the execution time measurement on the user side and automatically triggers the insertion of a new MeasurementPair as soon as the measurement is stopped.
Internally, stemod::core::AlgorithmMeasurement::afterAlgorithmExecution() stops the time and adds the received data to the algorithms statistics.
Definition at line 44 of file algorithm_statistics.hpp.
Definition at line 19 of file algorithm_statistics.cpp.
hype::core::AlgorithmStatistics::AlgorithmStatistics  (  const AlgorithmStatistics &  )  [private] 
static void hype::core::AlgorithmStatistics::operator delete  (  void *  ptr  )  [static, private] 
static void* hype::core::AlgorithmStatistics::operator new  (  size_t  size  )  [static, private] 
AlgorithmStatistics& hype::core::AlgorithmStatistics::operator=  (  const AlgorithmStatistics &  )  [private] 
bool hype::core::AlgorithmStatistics::writeToDisc  (  const std::string &  operation_name, 
const std::string &  algorithm_name  
)  const 
Definition at line 29 of file algorithm_statistics.cpp.
References executionHistory_, hype::core::Runtime_Configuration::getRelativeErrorWindowSize(), hype::core::Runtime_Configuration::getTrainingLength(), hype::core::Runtime_Configuration::instance(), number_of_decisions_for_this_algorithm_, number_of_recomputations_, quiet, relative_errors_, hype::core::MeasurementPairRingbuffer::store(), and total_execution_time_.
Referenced by hype::core::Algorithm::~Algorithm().
Definition at line 59 of file algorithm_statistics.hpp.
Definition at line 55 of file algorithm_statistics.hpp.
Referenced by hype::core::Algorithm::addMeasurementPair(), hype::core::Least_Squares_Method_2D::recomuteApproximationFunction(), hype::core::Least_Squares_Method_1D::recomuteApproximationFunction(), and writeToDisc().
Definition at line 58 of file algorithm_statistics.hpp.
Referenced by hype::core::Algorithm::getNumberOfDecisionsforThisAlgorithm(), hype::core::Algorithm::incrementNumberofDecisionsforThisAlgorithm(), and writeToDisc().
Definition at line 57 of file algorithm_statistics.hpp.
Referenced by hype::core::Algorithm::addMeasurementPair(), and writeToDisc().
Definition at line 61 of file algorithm_statistics.hpp.
Referenced by hype::core::Algorithm::addMeasurementPair(), and hype::core::Algorithm::getNumberOfTerminatedExecutions().
std::vector<double> hype::core::AlgorithmStatistics::relative_errors_ 
Definition at line 56 of file algorithm_statistics.hpp.
Referenced by hype::core::Algorithm::addMeasurementPair(), and writeToDisc().
Definition at line 60 of file algorithm_statistics.hpp.
Referenced by hype::core::Algorithm::addMeasurementPair(), hype::core::Algorithm::getTotalExecutionTime(), and writeToDisc().