SHOGUN  v3.2.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
TwoDistributionsTestStatistic.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 __TwoDistributionsTestStatistic_H_
11 #define __TwoDistributionsTestStatistic_H_
12 
14 
15 namespace shogun
16 {
17 
18 class CFeatures;
19 
31 {
32  public:
34 
45 
57 
59 
66 
75  virtual float64_t compute_p_value(float64_t statistic);
76 
85  virtual float64_t compute_threshold(float64_t alpha);
86 
90  virtual void set_p_and_q(CFeatures* p_and_q);
91 
95  virtual CFeatures* get_p_and_q();
96 
98  index_t get_m() { return m_m; }
99 
100  virtual const char* get_name() const=0;
101 
102  private:
103  void init();
104 
105  protected:
108 
111 };
112 
113 }
114 
115 #endif /* __TwoDistributionsTestStatistic_H_ */
virtual float64_t compute_threshold(float64_t alpha)
int32_t index_t
Definition: common.h:60
double float64_t
Definition: common.h:48
Provides an interface for performing statistical tests on two sets of samples from two distributions...
virtual const char * get_name() const =0
Test statistic base class. Provides an interface for statistical tests via three methods: compute_sta...
Definition: TestStatistic.h:47
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
virtual float64_t compute_p_value(float64_t statistic)
The class Features is the base class of all feature objects.
Definition: Features.h:62

SHOGUN Machine Learning Toolbox - Documentation