SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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__ */

SHOGUN Machine Learning Toolbox - Documentation