SHOGUN
v3.2.0
|
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 _MAJORITY_VOTE_H_ 00012 #define _MAJORITY_VOTE_H_ 00013 00014 #include <shogun/ensemble/WeightedMajorityVote.h> 00015 00016 namespace shogun 00017 { 00022 class CMajorityVote : public CWeightedMajorityVote 00023 { 00024 public: 00025 CMajorityVote(); 00026 00027 virtual ~CMajorityVote(); 00028 00037 virtual SGVector<float64_t> combine(const SGMatrix<float64_t>& ensemble_result) const; 00038 00046 virtual float64_t combine(const SGVector<float64_t>& ensemble_result) const; 00047 00049 virtual const char* get_name() const { return "MajorityVote"; } 00050 }; 00051 } 00052 00053 #endif /* _MAJORITY_VOTE_H_ */