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) 2012-2013 Heiko Strathmann 00008 */ 00009 00010 #ifndef __MMDKERNELSELECTION_H_ 00011 #define __MMDKERNELSELECTION_H_ 00012 00013 #include <shogun/base/SGObject.h> 00014 00015 namespace shogun 00016 { 00017 00018 class CKernelTwoSampleTestStatistic; 00019 class CKernel; 00020 00034 class CMMDKernelSelection: public CSGObject 00035 { 00036 public: 00037 00039 CMMDKernelSelection(); 00040 00046 CMMDKernelSelection(CKernelTwoSampleTestStatistic* mmd); 00047 00049 virtual ~CMMDKernelSelection(); 00050 00057 virtual SGVector<float64_t> compute_measures()=0; 00058 00065 virtual CKernel* select_kernel(); 00066 00068 const char* get_name() const=0; 00069 00070 private: 00071 00073 void init(); 00074 00075 protected: 00077 CKernelTwoSampleTestStatistic* m_mmd; 00078 }; 00079 00080 } 00081 00082 #endif /* __MMDKERNELSELECTION_H_ */