SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ICAConverter.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) 2013 Kevin Hughes
8  */
9 
10 #ifndef ICACONVERTER_H_
11 #define ICACONVERTER_H_
12 
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_EIGEN3
17 #include <shogun/lib/SGMatrix.h>
18 
19 namespace shogun
20 {
21 
22 class CFeatures;
23 
28 {
29  public:
30 
32  CICAConverter();
33 
35  virtual ~CICAConverter();
36 
40  virtual CFeatures* apply(CFeatures* features) = 0;
41 
46  void set_mixing_matrix(SGMatrix<float64_t>mixing_matrix);
47 
52 
57  void set_max_iter(int iter);
58 
62  int get_max_iter() const;
63 
67  void set_tol(float64_t tol);
68 
72  float64_t get_tol() const;
73 
75  virtual const char* get_name() const { return "ICAConverter"; };
76 
77  protected:
78 
80  void init();
81 
84 
86  int max_iter;
87 
90 };
91 }
92 #endif // HAVE_EIGEN3
93 #endif // ICACONVERTER
class Converter used to convert data
Definition: Converter.h:26
virtual CFeatures * apply(CFeatures *features)=0
void set_max_iter(int iter)
double float64_t
Definition: common.h:50
float64_t get_tol() const
SGMatrix< float64_t > get_mixing_matrix() const
void set_tol(float64_t tol)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
class ICAConverter Base class for ICA algorithms
Definition: ICAConverter.h:27
The class Features is the base class of all feature objects.
Definition: Features.h:68
SGMatrix< float64_t > m_mixing_matrix
Definition: ICAConverter.h:83
void set_mixing_matrix(SGMatrix< float64_t >mixing_matrix)
virtual const char * get_name() const
Definition: ICAConverter.h:75
int get_max_iter() const

SHOGUN Machine Learning Toolbox - Documentation