SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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/lib/config.h>
15 
18 
19 namespace shogun
20 {
21 
26 {
27  public:
30 
35  CFactorGraphFeatures(int32_t num_samples);
36 
37  virtual ~CFactorGraphFeatures();
38 
43  virtual CFeatures* duplicate() const;
44 
49  virtual EFeatureType get_feature_type() const;
50 
55  virtual EFeatureClass get_feature_class() const;
56 
61  virtual int32_t get_num_vectors() const;
62 
67  virtual const char* get_name() const { return "FactorGraphFeatures"; }
68 
74  bool add_sample(CFactorGraph* fg);
75 
82 
89 
90  protected:
93 
94  private:
96  void init();
97 };
98 
99 }
100 
101 #endif /* __FACTORGRAPH_FEATURES_H__ */
virtual EFeatureType get_feature_type() const
CDynamicObjectArray * m_samples
int32_t index_t
Definition: common.h:62
CFactorGraph * get_sample(index_t idx)
virtual int32_t get_num_vectors() const
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
bool add_sample(CFactorGraph *fg)
static CFactorGraphFeatures * obtain_from_generic(CFeatures *base_feats)
CFactorGraphFeatures maintains an array of factor graphs, each graph is a sample, i...
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
virtual CFeatures * duplicate() const
EFeatureType
shogun feature type
Definition: FeatureTypes.h:19
virtual const char * get_name() const
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
Class CFactorGraph a factor graph is a structured input in general.
Definition: FactorGraph.h:27
The class Features is the base class of all feature objects.
Definition: Features.h:68
virtual EFeatureClass get_feature_class() const

SHOGUN Machine Learning Toolbox - Documentation