Column-oriented GPU-accelerated Database Management System
CoGaDB
/home/sebastian/gpudbms/trunk/hype-library/include/core/statistics.hpp
Go to the documentation of this file.
00001 /***********************************************************************************************************
00002 Copyright (c) 2012, Sebastian Breß, Otto-von-Guericke University of Magdeburg, Germany. All rights reserved.
00003 
00004 This program and accompanying materials are made available under the terms of the 
00005 GNU LESSER GENERAL PUBLIC LICENSE - Version 3, http://www.gnu.org/licenses/lgpl-3.0.txt
00006 ***********************************************************************************************************/
00007 #pragma once
00008 
00009 namespace hype{
00010         namespace core{
00011 
00012 
00013 class Statistics{
00014 
00015         public:
00016 
00017         static Statistics& Instance(){
00018                 static Statistics statistics;
00019                 return statistics;
00020         }
00021 
00022 //      void setRecomputationHeuristic(RecomputationHeuristic& recomp_heuristic){
00023 //              this->recomp_heuristic_=recomp_heuristic;
00024 //      }
00025 
00026         const bool addObservation(std::string name_of_algorithm, const Measurementpair& mp);//;
00027 //      {
00028 
00029 //              //if RecomputationHeuristic.recompute(alg) then algorithm.statistical_method.recomputeApproximationFunction();
00030 //      }
00031 
00032 
00033         private:
00034         Statistics(){}                                                                          //constructor
00035         Statistics(const Statistics& stats){}           //copy constructor
00036 
00037         map<Algorithm&,vector<AlgorithmStatistics> >    history_;
00038         //RecomputationHeuristic& recomp_heuristic_;
00039         //OptimizationCriteria& opt_criteria_;
00040 
00041 };
00042 
00043         }; //end namespace core
00044 }; //end namespace hype
00045 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines