SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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

SHOGUN Machine Learning Toolbox - Documentation