SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MeanRule.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 _MEAN_RULE_H_
00012 #define _MEAN_RULE_H_
00013 
00014 #include <shogun/ensemble/CombinationRule.h>
00015 
00016 namespace shogun
00017 {
00021     class CMeanRule : public CCombinationRule
00022     {
00023         public:
00024             CMeanRule();
00025 
00026             virtual ~CMeanRule();
00027 
00036             virtual SGVector<float64_t> combine(const SGMatrix<float64_t>& ensemble_result) const;
00037 
00045             virtual float64_t combine(const SGVector<float64_t>& ensemble_result) const;
00046 
00048             virtual const char* get_name() const { return "MeanRule"; }
00049     };
00050 }
00051 
00052 #endif /* _MEAN_RULE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation