SHOGUN  4.2.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>
16 #include <shogun/lib/SGMatrix.h>
17 
18 namespace shogun
19 {
20 
21 class CFeatures;
22 
27 {
28  public:
29 
31  CICAConverter();
32 
34  virtual ~CICAConverter();
35 
39  virtual CFeatures* apply(CFeatures* features) = 0;
40 
45  void set_mixing_matrix(SGMatrix<float64_t>mixing_matrix);
46 
51 
56  void set_max_iter(int iter);
57 
61  int get_max_iter() const;
62 
66  void set_tol(float64_t tol);
67 
71  float64_t get_tol() const;
72 
74  virtual const char* get_name() const { return "ICAConverter"; };
75 
76  protected:
77 
79  void init();
80 
83 
85  int max_iter;
86 
89 };
90 }
91 #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:26
The class Features is the base class of all feature objects.
Definition: Features.h:68
SGMatrix< float64_t > m_mixing_matrix
Definition: ICAConverter.h:82
void set_mixing_matrix(SGMatrix< float64_t >mixing_matrix)
virtual const char * get_name() const
Definition: ICAConverter.h:74
int get_max_iter() const

SHOGUN Machine Learning Toolbox - Documentation