SHOGUN
v3.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-2013 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
m);
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
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
:
107
CFeatures
*
m_p_and_q
;
108
110
index_t
m_m
;
111
};
112
113
}
114
115
#endif
/* __TwoDistributionsTestStatistic_H_ */
SHOGUN
Machine Learning Toolbox - Documentation