SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DummyFeatures.cpp
Go to the documentation of this file.
3 
4 using namespace shogun;
5 
7 {
8  init();
9  num_vectors = 0;
10 }
11 
12 CDummyFeatures::CDummyFeatures(int32_t num) : CFeatures(0), num_vectors(num)
13 {
14  init();
15 }
16 
18  num_vectors(orig.num_vectors)
19 {
20  init();
21 }
22 
24 {
25 }
26 
28 {
29  return num_vectors;
30 }
31 
33 {
34  return new CDummyFeatures(*this);
35 }
36 
38 {
39  return F_ANY;
40 }
41 
43 {
44  return C_ANY;
45 }
46 
47 void CDummyFeatures::init()
48 {
49  m_parameters->add(&num_vectors, "num_vectors",
50  "Number of feature vectors.");
51 }
Parameter * m_parameters
Definition: SGObject.h:378
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
void add(bool *param, const char *name, const char *description="")
Definition: Parameter.cpp:37
virtual int32_t get_num_vectors() const
EFeatureType
shogun feature type
Definition: FeatureTypes.h:19
virtual CFeatures * duplicate() const
The class DummyFeatures implements features that only know the number of feature objects (but don't a...
Definition: DummyFeatures.h:25
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
EFeatureType get_feature_type() const
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