ARCHIVE
Snapshot of
the Shogun machine learning toolbox website
as of
2013
: preserved, not maintained. The live site:
shogun-toolbox.org
SHOGUN
4.1.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
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::CConverter
class Converter used to convert data
Definition:
Converter.h:26
shogun::CICAConverter::tol
float64_t tol
Definition:
ICAConverter.h:89
shogun::CICAConverter::init
void init()
Definition:
ICAConverter.cpp:21
shogun::SGMatrix< float64_t >
shogun::MS_NOT_AVAILABLE
Definition:
SGObject.h:89
shogun::CICAConverter::~CICAConverter
virtual ~CICAConverter()
Definition:
ICAConverter.cpp:32
shogun::CICAConverter::CICAConverter
CICAConverter()
Definition:
ICAConverter.cpp:16
ICAConverter.h
shogun::CICAConverter::set_max_iter
void set_max_iter(int iter)
Definition:
ICAConverter.cpp:46
float64_t
double float64_t
Definition:
common.h:50
shogun::CICAConverter::get_tol
float64_t get_tol() const
Definition:
ICAConverter.cpp:61
shogun::CICAConverter::get_mixing_matrix
SGMatrix< float64_t > get_mixing_matrix() const
Definition:
ICAConverter.cpp:41
shogun::CICAConverter::set_tol
void set_tol(float64_t tol)
Definition:
ICAConverter.cpp:56
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::CICAConverter::m_mixing_matrix
SGMatrix< float64_t > m_mixing_matrix
Definition:
ICAConverter.h:83
shogun::CICAConverter::max_iter
int max_iter
Definition:
ICAConverter.h:86
shogun::CICAConverter::set_mixing_matrix
void set_mixing_matrix(SGMatrix< float64_t >mixing_matrix)
Definition:
ICAConverter.cpp:36
SG_ADD
#define SG_ADD(...)
Definition:
SGObject.h:81
shogun::CICAConverter::get_max_iter
int get_max_iter() const
Definition:
ICAConverter.cpp:51
SHOGUN
Machine Learning Toolbox - Documentation