SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
IndividualJobResultAggregator.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Soumyajit De
8  */
9 
10 #ifndef INDIVIDUAL_JOB_RESULT_AGGREGATOR_H_
11 #define INDIVIDUAL_JOB_RESULT_AGGREGATOR_H_
12 
13 #include <shogun/lib/config.h>
15 
16 
17 namespace shogun
18 {
19 class CJobResult;
20 template<class T> class SGVector;
21 template<class T> class CLinearOperator;
22 
31 {
32 public:
35 
47  linear_operator, SGVector<float64_t> vector,
48  const float64_t& const_multiplier);
49 
52 
57  virtual void finalize();
58 
60  virtual const char* get_name() const
61  {
62  return "IndividualJobResultAggregator";
63  }
64 private:
66  CLinearOperator<float64_t>* m_linear_operator;
67 
69  SGVector<float64_t> m_vector;
70 
72  const float64_t m_const_multiplier;
73 
75  void init();
76 };
77 
78 }
79 
80 #endif // INDIVIDUAL_JOB_RESULT_AGGREGATOR_H_
Abstract template class that aggregates vector job results in each submit_result call, finalize is abstract.
Class that aggregates vector job results in each submit_result call of jobs generated from rational a...
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

SHOGUN Machine Learning Toolbox - Documentation