SHOGUN  v3.2.0
Preprocessor.h
浏览该文件的文档.
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/common.h>
16 #include <shogun/base/SGObject.h>
19 
20 namespace shogun
21 {
22 
23 class CFeatures;
24 
31 {
45  P_PCA=130,
49  P_SUMONE=170,
51  P_PNORM = 190,
53 };
54 
69 class CPreprocessor : public CSGObject
70 {
71 public:
74  {
75  };
76 
78  virtual ~CPreprocessor()
79  {
80  }
81 
83  virtual bool init(CFeatures* features)=0;
84 
86  virtual void cleanup()=0;
87 
89  virtual EFeatureType get_feature_type()=0;
90 
92  virtual EFeatureClass get_feature_class()=0;
93 
95  virtual EPreprocessorType get_type() const=0;
96 };
97 }
98 #endif // PREPROCESSOR_H_
virtual EPreprocessorType get_type() const =0
virtual ~CPreprocessor()
Definition: Preprocessor.h:78
EPreprocessorType
Definition: Preprocessor.h:30
virtual EFeatureType get_feature_type()=0
virtual EFeatureClass get_feature_class()=0
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:35
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:102
virtual void cleanup()=0
EFeatureType
shogun feature type
Definition: FeatureTypes.h:16
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
The class Features is the base class of all feature objects.
Definition: Features.h:62
Class Preprocessor defines a preprocessor interface.
Definition: Preprocessor.h:69

SHOGUN Machine Learning Toolbox - Documentation