SHOGUN  v3.0.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
MMDKernelSelectionComb.h
浏览该文件的文档.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012-2013 Heiko Strathmann
8  */
9 
10 #ifndef __MMDKERNELSELECTIONCOMB_H_
11 #define __MMDKERNELSELECTIONCOMB_H_
12 
13 #include <shogun/lib/config.h>
14 
16 #include <shogun/lib/SGMatrix.h>
17 #include <shogun/lib/external/libqp.h>
18 
19 namespace shogun
20 {
21 
22 class CLinearTimeMMD;
23 
29 {
30 public:
31 
34 
41 
43  virtual ~CMMDKernelSelectionComb();
44 
45 #ifdef HAVE_LAPACK
46 
51 #else
52 
58 #endif
59 
65  virtual CKernel* select_kernel();
66 
68  const char* get_name() const=0;
69 
70 protected:
84 
85 #ifdef HAVE_LAPACK
86 
87  static const float64_t* get_Q_col(uint32_t i);
88 
90  static void print_state(libqp_state_T state);
91 
94 
97 
100 
103 #endif
104 
105 private:
107  void init();
108 };
109 
110 }
111 
112 #endif /* __MMDKERNELSELECTIONCOMB_H_ */
const char * get_name() const =0
virtual SGVector< float64_t > compute_measures()=0
static SGMatrix< float64_t > m_Q
int32_t index_t
Definition: common.h:60
virtual SGVector< float64_t > solve_optimization(SGVector< float64_t > mmds)
Base class for kernel selection for MMD-based two-sample test statistic implementations (e...
static void print_state(libqp_state_T state)
double float64_t
Definition: common.h:48
static const float64_t * get_Q_col(uint32_t i)
Two sample test base class. Provides an interface for performing a two-sample test, i.e. Given samples from two distributions and , the null-hypothesis is: , the alternative hypothesis: .
The Kernel base class.
Definition: Kernel.h:150
Base class for kernel selection of combined kernels. Given an MMD instance whose underlying kernel is...

SHOGUN Machine Learning Toolbox - Documentation