SHOGUN
3.2.1
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
preprocessor
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
>
17
#include <
shogun/features/FeatureTypes.h
>
18
#include <
shogun/features/Features.h
>
19
20
namespace
shogun
21
{
22
23
class
CFeatures;
24
30
enum
EPreprocessorType
31
{
32
P_UNKNOWN
=0,
33
P_NORMONE
=10,
34
P_LOGPLUSONE
=20,
35
P_SORTWORDSTRING
=30,
36
P_SORTULONGSTRING
=40,
37
P_SORTWORD
=50,
38
P_PRUNEVARSUBMEAN
=60,
39
P_DECOMPRESSSTRING
=70,
40
P_DECOMPRESSCHARSTRING
=80,
41
P_DECOMPRESSBYTESTRING
=90,
42
P_DECOMPRESSWORDSTRING
=100,
43
P_DECOMPRESSULONGSTRING
=110,
44
P_RANDOMFOURIERGAUSS
=120,
45
P_PCA
=130,
46
P_KERNELPCA
=140,
47
P_NORMDERIVATIVELEM3
=150,
48
P_DIMENSIONREDUCTIONPREPROCESSOR
=160,
49
P_SUMONE
=170,
50
P_HOMOGENEOUSKERNELMAP
= 180,
51
P_PNORM
= 190,
52
P_RESCALEFEATURES
= 200
53
};
54
69
class
CPreprocessor
:
public
CSGObject
70
{
71
public
:
73
CPreprocessor
() :
CSGObject
()
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_
SGObject.h
shogun::P_HOMOGENEOUSKERNELMAP
Definition:
Preprocessor.h:50
shogun::CPreprocessor::get_type
virtual EPreprocessorType get_type() const =0
shogun::CPreprocessor::~CPreprocessor
virtual ~CPreprocessor()
Definition:
Preprocessor.h:78
shogun::EPreprocessorType
EPreprocessorType
Definition:
Preprocessor.h:30
shogun::CPreprocessor::get_feature_type
virtual EFeatureType get_feature_type()=0
shogun::P_RANDOMFOURIERGAUSS
Definition:
Preprocessor.h:44
shogun::P_SORTULONGSTRING
Definition:
Preprocessor.h:36
shogun::P_DIMENSIONREDUCTIONPREPROCESSOR
Definition:
Preprocessor.h:48
shogun::P_PRUNEVARSUBMEAN
Definition:
Preprocessor.h:38
shogun::P_DECOMPRESSSTRING
Definition:
Preprocessor.h:39
shogun::CPreprocessor::get_feature_class
virtual EFeatureClass get_feature_class()=0
shogun::EFeatureClass
EFeatureClass
shogun feature class
Definition:
FeatureTypes.h:35
shogun::P_SUMONE
Definition:
Preprocessor.h:49
shogun::P_LOGPLUSONE
Definition:
Preprocessor.h:34
shogun::P_NORMDERIVATIVELEM3
Definition:
Preprocessor.h:47
shogun::P_DECOMPRESSCHARSTRING
Definition:
Preprocessor.h:40
shogun::CSGObject
Class SGObject is the base class of all shogun objects.
Definition:
SGObject.h:102
shogun::P_KERNELPCA
Definition:
Preprocessor.h:46
shogun::P_DECOMPRESSBYTESTRING
Definition:
Preprocessor.h:41
shogun::P_PCA
Definition:
Preprocessor.h:45
shogun::P_DECOMPRESSULONGSTRING
Definition:
Preprocessor.h:43
shogun::CPreprocessor::cleanup
virtual void cleanup()=0
shogun::P_SORTWORDSTRING
Definition:
Preprocessor.h:35
shogun::P_PNORM
Definition:
Preprocessor.h:51
shogun::P_UNKNOWN
Definition:
Preprocessor.h:32
shogun::EFeatureType
EFeatureType
shogun feature type
Definition:
FeatureTypes.h:16
shogun::P_DECOMPRESSWORDSTRING
Definition:
Preprocessor.h:42
shogun::P_NORMONE
Definition:
Preprocessor.h:33
shogun::P_SORTWORD
Definition:
Preprocessor.h:37
shogun::P_RESCALEFEATURES
Definition:
Preprocessor.h:52
shogun::CFeatures
The class Features is the base class of all feature objects.
Definition:
Features.h:62
Features.h
shogun::CPreprocessor
Class Preprocessor defines a preprocessor interface.
Definition:
Preprocessor.h:69
shogun::CPreprocessor::CPreprocessor
CPreprocessor()
Definition:
Preprocessor.h:73
common.h
FeatureTypes.h
SHOGUN
Machine Learning Toolbox - Documentation