SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ICAConverter.cpp
浏览该文件的文档.
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 
11 
12 #ifdef HAVE_EIGEN3
13 
14 using namespace shogun;
15 
17 {
18  init();
19 }
20 
22 {
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 
33 {
34 }
35 
37 {
38  m_mixing_matrix = mixing_matrix;
39 }
40 
42 {
43  return m_mixing_matrix;
44 }
45 
47 {
48  max_iter = iter;
49 }
50 
52 {
53  return max_iter;
54 }
55 
57 {
58  tol = _tol;
59 }
60 
62 {
63  return tol;
64 }
65 
66 #endif // HAVE_EIGEN3
class Converter used to convert data
Definition: Converter.h:26
void set_max_iter(int iter)
double float64_t
Definition: common.h:50
float64_t get_tol() const
SGMatrix< float64_t > get_mixing_matrix() const
void set_tol(float64_t tol)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
SGMatrix< float64_t > m_mixing_matrix
Definition: ICAConverter.h:83
void set_mixing_matrix(SGMatrix< float64_t >mixing_matrix)
#define SG_ADD(...)
Definition: SGObject.h:81
int get_max_iter() const

SHOGUN 机器学习工具包 - 项目文档