SHOGUN  3.2.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
DensePreprocessor.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  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef _DENSEPREPROCESSOR__H__
12 #define _DENSEPREPROCESSOR__H__
13 
16 #include <shogun/lib/common.h>
18 
19 namespace shogun
20 {
21 template <class ST> class CDenseFeatures;
22 
31 template <class ST> class CDensePreprocessor : public CPreprocessor
32 {
33  public:
37 
41  virtual SGMatrix<ST> apply_to_feature_matrix(CFeatures* features)=0;
42 
46 
51 
53  virtual EPreprocessorType get_type() const;
54 
55 };
56 
57 }
58 #endif
EPreprocessorType
Definition: Preprocessor.h:30
virtual EFeatureClass get_feature_class()
return that we are dense features (just fixed size matrices)
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:35
virtual EPreprocessorType get_type() const
return a type of preprocessor
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
EFeatureType
shogun feature type
Definition: FeatureTypes.h:16
shogun matrix
Definition: DenseFeatures.h:27
The class Features is the base class of all feature objects.
Definition: Features.h:62
virtual SGMatrix< ST > apply_to_feature_matrix(CFeatures *features)=0
Class Preprocessor defines a preprocessor interface.
Definition: Preprocessor.h:69
virtual EFeatureType get_feature_type()
return feature type
virtual SGVector< ST > apply_to_feature_vector(SGVector< ST > vector)=0

SHOGUN 机器学习工具包 - 项目文档