SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MMDKernelSelectionOpt.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) 2012-2013 Heiko Strathmann
00008  */
00009 
00010 #ifndef __MMDKERNELSELECTIONOPTSINGLE_H_
00011 #define __MMDKERNELSELECTIONOPTSINGLE_H_
00012 
00013 #include <shogun/statistics/MMDKernelSelection.h>
00014 
00015 namespace shogun
00016 {
00017 
00018 class CLinearTimeMMD;
00019 
00036 class CMMDKernelSelectionOpt: public CMMDKernelSelection
00037 {
00038 public:
00039 
00041     CMMDKernelSelectionOpt();
00042 
00050     CMMDKernelSelectionOpt(CKernelTwoSampleTestStatistic* mmd,
00051             float64_t lambda=10E-5);
00052 
00054     virtual ~CMMDKernelSelectionOpt();
00055 
00063     virtual SGVector<float64_t> compute_measures();
00064 
00066     const char* get_name() const { return "MMDKernelSelectionOpt"; }
00067 
00068 private:
00070     void init();
00071 
00072 protected:
00075     float64_t m_lambda;
00076 };
00077 
00078 }
00079 
00080 #endif /* __MMDKERNELSELECTIONOPTSINGLE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation