KernelIndependenceTestStatistic.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 Heiko Strathmann
00008  */
00009 
00010 #ifndef __KERNELINDEPENDENCESTSTATISTIC_H_
00011 #define __KERNELINDEPENDENCESTSTATISTIC_H_
00012 
00013 #include <shogun/statistics/TwoDistributionsTestStatistic.h>
00014 
00015 namespace shogun
00016 {
00017 
00018 class CFeatures;
00019 class CKernel;
00020 
00036 class CKernelIndependenceTestStatistic: public CTwoDistributionsTestStatistic
00037 {
00038 public:
00039     CKernelIndependenceTestStatistic();
00040 
00052     CKernelIndependenceTestStatistic(CKernel* kernel_p, CKernel* kernel_q,
00053             CFeatures* p_and_q, index_t q_start);
00054 
00067     CKernelIndependenceTestStatistic(CKernel* kernel_p, CKernel* kernel_q,
00068             CFeatures* p, CFeatures* q);
00069 
00070     virtual ~CKernelIndependenceTestStatistic();
00071 
00079     virtual SGVector<float64_t> bootstrap_null();
00080 
00081     virtual const char* get_name() const=0;
00082 
00083 private:
00084     void init();
00085 
00086 protected:
00088     CKernel* m_kernel_p;
00089 
00091     CKernel* m_kernel_q;
00092 };
00093 
00094 }
00095 
00096 #endif /* __KERNELINDEPENDENCESTSTATISTIC_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation