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
features
FactorGraphFeatures.h
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 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
Machine Learning Toolbox - Documentation