SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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/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
52 };
53 
68 class CPreprocessor : public CSGObject
69 {
70 public:
73  {
74  };
75 
77  virtual ~CPreprocessor()
78  {
79  }
80 
82  virtual bool init(CFeatures* features)=0;
83 
85  virtual void cleanup()=0;
86 
88  virtual EFeatureType get_feature_type()=0;
89 
91  virtual EFeatureClass get_feature_class()=0;
92 
94  virtual EPreprocessorType get_type() const=0;
95 };
96 }
97 #endif // PREPROCESSOR_H_

SHOGUN Machine Learning Toolbox - Documentation