SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KernelTwoSampleTestStatistic.h
Go to the documentation of this file.
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 __KERNELTWOSAMPLETESTSTATISTIC_H_
11 #define __KERNELTWOSAMPLETESTSTATISTIC_H_
12 
14 #include <shogun/kernel/Kernel.h>
15 
16 namespace shogun
17 {
18 
19 class CFeatures;
20 class CKernel;
21 
35 {
36  public:
38 
50  index_t q_start);
51 
64  CFeatures* q);
65 
67 
71  inline virtual void set_kernel(CKernel* kernel)
72  {
73  /* ref before unref to prevent deleting in case objects are the same */
74  SG_REF(kernel);
76  m_kernel=kernel;
77  }
78 
80  inline virtual CKernel* get_kernel()
81  {
83  return m_kernel;
84  }
85 
94 
103  bool multiple_kernels)=0;
104 
106  virtual float64_t compute_statistic()=0;
107 
108  virtual const char* get_name() const=0;
109 
110  private:
111  void init();
112 
113  protected:
116 };
117 
118 }
119 
120 #endif /* __KERNELTWOSAMPLETESTSTATISTIC_H_ */

SHOGUN Machine Learning Toolbox - Documentation