SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CombinationRule.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2013 Viktor Gal
00008  * Copyright (C) 2013 Viktor Gal
00009  */
00010 
00011 #ifndef _COMBINATION_RULE_H_
00012 #define _COMBINATION_RULE_H_
00013 
00014 #include <shogun/base/SGObject.h>
00015 
00016 namespace shogun
00017 {
00023     class CCombinationRule : public CSGObject
00024     {
00025         public:
00027             CCombinationRule();
00028 
00029             virtual ~CCombinationRule();
00030 
00039             virtual SGVector<float64_t> combine(const SGMatrix<float64_t>& ensemble_result) const = 0;
00040 
00048             virtual float64_t combine(const SGVector<float64_t>& ensemble_result) const = 0;
00049 
00051             virtual const char* get_name() const { return "CombinationRule"; }
00052     };
00053 }
00054 
00055 #endif /* _COMBINATION_RULE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation