SHOGUN  6.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
Preprocessor.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) 1999-2009 Soeren Sonnenburg
8  * Written (W) 1999-2008 Gunnar Raetsch
9  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
10  */
11 
12 #ifndef PREPROCESSOR_H_
13 #define PREPROCESSOR_H_
14 
15 #include <shogun/lib/config.h>
16 
17 #include <shogun/lib/common.h>
18 #include <shogun/base/SGObject.h>
21 
22 namespace shogun
23 {
24 
25 class CFeatures;
26 
33 {
47  P_PCA=130,
51  P_SUMONE=170,
53  P_PNORM = 190,
56 };
57 
74 class CPreprocessor : public CSGObject
75 {
76 public:
79  {
80  };
81 
83  virtual ~CPreprocessor()
84  {
85  }
86 
88  virtual bool init(CFeatures* features)=0;
89 
96  virtual CFeatures* apply(CFeatures* features)=0;
97 
99  virtual void cleanup()=0;
100 
102  virtual EFeatureType get_feature_type()=0;
103 
105  virtual EFeatureClass get_feature_class()=0;
106 
108  virtual EPreprocessorType get_type() const=0;
109 };
110 }
111 #endif // PREPROCESSOR_H_
virtual EPreprocessorType get_type() const =0
virtual ~CPreprocessor()
Definition: Preprocessor.h:83
EPreprocessorType
Definition: Preprocessor.h:32
virtual EFeatureType get_feature_type()=0
virtual EFeatureClass get_feature_class()=0
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:125
virtual CFeatures * apply(CFeatures *features)=0
virtual void cleanup()=0
EFeatureType
shogun feature type
Definition: FeatureTypes.h:19
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
Class Preprocessor defines a preprocessor interface.
Definition: Preprocessor.h:74

SHOGUN Machine Learning Toolbox - Documentation