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
HSIC.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 __HSIC_H_
11
#define __HSIC_H_
12
13
#include <
shogun/statistics/KernelIndependenceTestStatistic.h
>
14
15
namespace
shogun
16
{
17
18
template
<
class
T>
class
SGMatrix;
19
20
67
class
CHSIC
:
public
CKernelIndependenceTestStatistic
68
{
69
public
:
71
CHSIC
();
72
84
CHSIC
(
CKernel
* kernel_p,
CKernel
* kernel_q,
CFeatures
* p_and_q,
85
index_t
m);
86
99
CHSIC
(
CKernel
* kernel_p,
CKernel
* kernel_q,
CFeatures
* p,
CFeatures
* q);
100
101
virtual
~CHSIC
();
102
112
virtual
float64_t
compute_statistic
();
113
122
virtual
float64_t
compute_p_value
(
float64_t
statistic);
123
131
virtual
float64_t
compute_threshold
(
float64_t
alpha);
132
133
virtual
const
char
*
get_name
()
const
134
{
135
return
"HSIC"
;
136
}
137
139
virtual
EStatisticType
get_statistic_type
()
const
140
{
141
return
S_HSIC
;
142
}
143
163
SGVector<float64_t>
fit_null_gamma
();
164
172
virtual
SGVector<float64_t>
bootstrap_null
();
173
174
protected
:
176
SGMatrix<float64_t>
get_kernel_matrix_K
();
177
179
SGMatrix<float64_t>
get_kernel_matrix_L
();
180
181
private
:
182
void
init();
183
184
};
185
186
}
187
188
#endif
/* __HSIC_H_ */
SHOGUN
Machine Learning Toolbox - Documentation