SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DensePreprocessor.cpp
Go to the documentation of this file.
2 
3 namespace shogun
4 {
5 template <class ST>
7 {
8 }
9 
11 {
12  return F_LONGREAL;
13 }
14 
16 {
17  return F_DREAL;
18 }
19 
21 {
22  return F_SHORTREAL;
23 }
24 
26 {
27  return F_SHORT;
28 }
29 
31 {
32  return F_WORD;
33 }
34 
36 {
37  return F_CHAR;
38 }
39 
41 {
42  return F_CHAR;
43 }
44 
46 {
47  return F_BYTE;
48 }
49 
51 {
52  return F_INT;
53 }
54 
56 {
57  return F_UINT;
58 }
59 
60 
62 {
63  return F_LONG;
64 }
65 
67 {
68  return F_ULONG;
69 }
70 
72 {
73  return F_BOOL;
74 }
75 
76 template <class ST>
78 {
79  return C_DENSE;
80 }
81 
82 template <class ST>
84 {
85  return P_UNKNOWN;
86 }
87 
88 template <class ST>
90 {
91  REQUIRE(features->get_feature_class()==C_DENSE, "Provided features (%d) "
92  "has to be of C_DENSE (%d) class!\n",
93  features->get_feature_class(), C_DENSE);
94 
95  SGMatrix<ST> feat_matrix=apply_to_feature_matrix(features);
96  CDenseFeatures<ST>* preprocessed=new CDenseFeatures<ST>(feat_matrix);
97  SG_REF(preprocessed);
98  return preprocessed;
99 }
100 
101 template class CDensePreprocessor<bool>;
102 template class CDensePreprocessor<char>;
103 template class CDensePreprocessor<int8_t>;
104 template class CDensePreprocessor<uint8_t>;
105 template class CDensePreprocessor<int16_t>;
106 template class CDensePreprocessor<uint16_t>;
107 template class CDensePreprocessor<int32_t>;
108 template class CDensePreprocessor<uint32_t>;
109 template class CDensePreprocessor<int64_t>;
110 template class CDensePreprocessor<uint64_t>;
111 template class CDensePreprocessor<float32_t>;
112 template class CDensePreprocessor<float64_t>;
113 template class CDensePreprocessor<floatmax_t>;
114 }
EPreprocessorType
Definition: Preprocessor.h:32
The class DenseFeatures implements dense feature matrices.
Definition: LDA.h:41
#define REQUIRE(x,...)
Definition: SGIO.h:206
#define SG_REF(x)
Definition: SGObject.h:51
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
virtual EFeatureClass get_feature_class() const =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:75
virtual EFeatureType get_feature_type()
return feature type

SHOGUN Machine Learning Toolbox - Documentation