SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
features
FactorGraphFeatures.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 Shell Hu
8
* Copyright (C) 2013 Shell Hu
9
*/
10
11
#ifndef __FACTORGRAPH_FEATURES_H__
12
#define __FACTORGRAPH_FEATURES_H__
13
14
#include <
shogun/features/Features.h
>
15
#include <
shogun/structure/FactorGraph.h
>
16
17
namespace
shogun
18
{
19
23
class
CFactorGraphFeatures
:
public
CFeatures
24
{
25
public
:
27
CFactorGraphFeatures
();
28
33
CFactorGraphFeatures
(int32_t num_samples);
34
35
virtual
~CFactorGraphFeatures
();
36
41
virtual
CFeatures
*
duplicate
()
const
;
42
47
virtual
EFeatureType
get_feature_type
()
const
;
48
53
virtual
EFeatureClass
get_feature_class
()
const
;
54
59
virtual
int32_t
get_num_vectors
()
const
;
60
65
virtual
const
char
*
get_name
()
const
{
return
"FactorGraphFeatures"
; }
66
72
bool
add_sample
(
CFactorGraph
* fg);
73
79
CFactorGraph
*
get_sample
(
index_t
idx);
80
86
static
CFactorGraphFeatures
*
obtain_from_generic
(
CFeatures
* base_feats);
87
88
protected
:
90
CDynamicObjectArray
*
m_samples
;
91
92
private
:
94
void
init();
95
};
96
97
}
98
99
#endif
/* __FACTORGRAPH_FEATURES_H__ */
SHOGUN
机器学习工具包 - 项目文档