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 __MMDKERNELSELECTIONCOMBOPT_H_ 00011 #define __MMDKERNELSELECTIONCOMBOPT_H_ 00012 00013 #include <shogun/statistics/MMDKernelSelectionComb.h> 00014 00015 namespace shogun 00016 { 00017 00018 class CLinearTimeMMD; 00019 00040 class CMMDKernelSelectionCombOpt: public CMMDKernelSelectionComb 00041 { 00042 public: 00043 00045 CMMDKernelSelectionCombOpt(); 00046 00053 CMMDKernelSelectionCombOpt(CKernelTwoSampleTestStatistic* mmd, 00054 float64_t lambda=10E-5); 00055 00057 virtual ~CMMDKernelSelectionCombOpt(); 00058 00059 #ifdef HAVE_LAPACK 00060 00073 virtual SGVector<float64_t> compute_measures(); 00074 #endif 00075 00077 const char* get_name() const { return "MMDKernelSelectionCombOpt"; } 00078 00079 private: 00081 void init(); 00082 00083 protected: 00086 float64_t m_lambda; 00087 }; 00088 00089 } 00090 00091 #endif /* __MMDKERNELSELECTIONCOMBOPT_H_ */