SHOGUN
v1.1.0
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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_MULTIDIMENSIONALSCALING
=170,
50
P_LOCALLYLINEAREMBEDDING
=180,
51
P_ISOMAP
=190,
52
P_HESSIANLOCALLYLINEAREMBEDDING
=200,
53
P_LOCALTANGENTSPACEALIGNMENT
=210,
54
P_LAPLACIANEIGENMAPS
=220,
55
P_KERNELLOCALLYLINEAREMBEDDING
=230,
56
P_DIFFUSIONMAPS
=240,
57
P_KERNELLOCALTANGENTSPACEALIGNMENT
=250
58
};
59
74
class
CPreprocessor
:
public
CSGObject
75
{
76
public
:
78
CPreprocessor
() :
CSGObject
()
79
{
80
};
81
83
virtual
~CPreprocessor
()
84
{
85
}
86
88
virtual
bool
init(
CFeatures
* features)=0;
89
91
virtual
void
cleanup
()=0;
92
94
virtual
EFeatureType
get_feature_type
()=0;
95
97
virtual
EFeatureClass
get_feature_class
()=0;
98
100
virtual
EPreprocessorType
get_type
()
const
=0;
101
};
102
}
103
#endif // PREPROCESSOR_H_
SHOGUN
Machine Learning Toolbox - Documentation