SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TwoDistributionsTestStatistic.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 __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_ */

SHOGUN Machine Learning Toolbox - Documentation