SHOGUN
v2.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
statistics
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 Heiko Strathmann
8
*/
9
10
#ifndef __TwoDistributionsTestStatistic_H_
11
#define __TwoDistributionsTestStatistic_H_
12
13
#include <
shogun/statistics/TestStatistic.h
>
14
15
namespace
shogun
16
{
17
18
class
CFeatures;
19
30
class
CTwoDistributionsTestStatistic
:
public
CTestStatistic
31
{
32
public
:
33
CTwoDistributionsTestStatistic
();
34
44
CTwoDistributionsTestStatistic
(
CFeatures
* p_and_q,
index_t
q_start);
45
56
CTwoDistributionsTestStatistic
(
CFeatures
* p,
CFeatures
* q);
57
58
virtual
~CTwoDistributionsTestStatistic
();
59
65
virtual
SGVector<float64_t>
bootstrap_null
();
66
75
virtual
float64_t
compute_p_value
(
float64_t
statistic);
76
85
virtual
float64_t
compute_threshold
(
float64_t
alpha);
86
87
inline
virtual
const
char
*
get_name
()
const
=0;
88
89
private
:
90
void
init();
91
92
protected
:
94
CFeatures
*
m_p_and_q
;
95
97
index_t
m_q_start
;
98
};
99
100
}
101
102
#endif
/* __TwoDistributionsTestStatistic_H_ */
SHOGUN
Machine Learning Toolbox - Documentation