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.cpp
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
#include <
shogun/converter/ica/ICAConverter.h
>
11
12
#ifdef HAVE_EIGEN3
13
14
using namespace
shogun;
15
16
CICAConverter::CICAConverter
() :
CConverter
()
17
{
18
init
();
19
}
20
21
void
CICAConverter::init
()
22
{
23
m_mixing_matrix
=
SGMatrix<float64_t>
();
24
max_iter
= 200;
25
tol
= 1e-6;
26
27
SG_ADD
(&
m_mixing_matrix
,
"mixing_matrix"
,
"the mixing matrix"
,
MS_NOT_AVAILABLE
);
28
SG_ADD
(&max_iter,
"max_iter"
,
"maximum number of iterations"
,
MS_NOT_AVAILABLE
);
29
SG_ADD
(&
tol
,
"tol"
,
"the convergence tolerance"
,
MS_NOT_AVAILABLE
);
30
}
31
32
CICAConverter::~CICAConverter
()
33
{
34
}
35
36
void
CICAConverter::set_mixing_matrix
(
SGMatrix<float64_t>
mixing_matrix)
37
{
38
m_mixing_matrix
= mixing_matrix;
39
}
40
41
SGMatrix<float64_t>
CICAConverter::get_mixing_matrix
()
const
42
{
43
return
m_mixing_matrix
;
44
}
45
46
void
CICAConverter::set_max_iter
(
int
iter)
47
{
48
max_iter
= iter;
49
}
50
51
int
CICAConverter::get_max_iter
()
const
52
{
53
return
max_iter
;
54
}
55
56
void
CICAConverter::set_tol
(
float64_t
_tol)
57
{
58
tol
= _tol;
59
}
60
61
float64_t
CICAConverter::get_tol
()
const
62
{
63
return
tol
;
64
}
65
66
#endif // HAVE_EIGEN3
SHOGUN
Machine Learning Toolbox - Documentation