SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
converter
ica
ICAConverter.h
浏览该文件的文档.
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
机器学习工具包 - 项目文档