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 __KERNELTWOSAMPLETESTSTATISTIC_H_ 00011 #define __KERNELTWOSAMPLETESTSTATISTIC_H_ 00012 00013 #include <shogun/statistics/TwoDistributionsTestStatistic.h> 00014 00015 namespace shogun 00016 { 00017 00018 class CFeatures; 00019 class CKernel; 00020 00033 class CKernelTwoSampleTestStatistic : public CTwoDistributionsTestStatistic 00034 { 00035 public: 00036 CKernelTwoSampleTestStatistic(); 00037 00048 CKernelTwoSampleTestStatistic(CKernel* kernel, CFeatures* p_and_q, 00049 index_t q_start); 00050 00062 CKernelTwoSampleTestStatistic(CKernel* kernel, CFeatures* p, 00063 CFeatures* q); 00064 00065 virtual ~CKernelTwoSampleTestStatistic(); 00066 00074 virtual SGVector<float64_t> bootstrap_null(); 00075 00076 virtual const char* get_name() const=0; 00077 00078 private: 00079 void init(); 00080 00081 protected: 00083 CKernel* m_kernel; 00084 }; 00085 00086 } 00087 00088 #endif /* __KERNELTWOSAMPLETESTSTATISTIC_H_ */