SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
RescaleFeatures.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) 20013 Viktor Gal
8  * Copyright (C) 2013 Viktor Gal
9  */
10 
11 #ifndef __RESCALEFEATURES_H__
12 #define __RESCALEFEATURES_H__
13 
14 #include <shogun/lib/config.h>
15 
17 
18 namespace shogun
19 {
30  class CRescaleFeatures : public CDensePreprocessor<float64_t>
31  {
32  public:
35 
37  virtual ~CRescaleFeatures();
38 
44  virtual bool init(CFeatures* features);
45 
49  virtual void cleanup();
50 
58 
63 
65  virtual const char* get_name() const { return "RescaleFeatures"; }
66 
68  virtual EPreprocessorType get_type() const { return P_RESCALEFEATURES; }
69 
70  private:
71  void register_parameters();
72 
73  protected:
80  };
81 }
82 
83 #endif /* __RESCALEFEATURES_H__ */
virtual bool init(CFeatures *features)
EPreprocessorType
Definition: Preprocessor.h:32
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
virtual const char * get_name() const
virtual EPreprocessorType get_type() const
SGVector< float64_t > m_min
Preprocessor RescaleFeautres is rescaling the range of features to make the features independent of e...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
SGVector< float64_t > m_range
The class Features is the base class of all feature objects.
Definition: Features.h:68

SHOGUN Machine Learning Toolbox - Documentation