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
converter
ica
ICAConverter.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) 2013 Kevin Hughes
8
*/
9
10
#ifndef ICACONVERTER_H_
11
#define ICACONVERTER_H_
12
13
#include <
shogun/lib/config.h
>
14
#ifdef HAVE_EIGEN3
15
#include <
shogun/converter/Converter.h
>
16
#include <
shogun/features/Features.h
>
17
18
namespace
shogun
19
{
20
21
class
CFeatures;
22
26
class
CICAConverter
:
public
CConverter
27
{
28
public
:
29
31
CICAConverter
();
32
34
virtual
~CICAConverter
();
35
39
virtual
CFeatures
*
apply
(
CFeatures
* features) = 0;
40
45
void
set_mixing_matrix
(
SGMatrix<float64_t>
mixing_matrix);
46
50
SGMatrix<float64_t>
get_mixing_matrix
()
const
;
51
56
void
set_max_iter
(
int
iter);
57
61
int
get_max_iter
()
const
;
62
66
void
set_tol
(
float64_t
tol
);
67
71
float64_t
get_tol
()
const
;
72
74
virtual
const
char
*
get_name
()
const
{
return
"ICAConverter"
; };
75
76
protected
:
77
79
void
init
();
80
82
SGMatrix<float64_t>
m_mixing_matrix
;
83
85
int
max_iter
;
86
88
float64_t
tol
;
89
};
90
}
91
#endif // HAVE_EIGEN3
92
#endif // ICACONVERTER
SHOGUN
Machine Learning Toolbox - Documentation