SHOGUN
v3.2.0
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2013 Kevin Hughes 00008 */ 00009 00010 #ifndef ICACONVERTER_H_ 00011 #define ICACONVERTER_H_ 00012 00013 #include <shogun/lib/config.h> 00014 #ifdef HAVE_EIGEN3 00015 #include <shogun/converter/Converter.h> 00016 #include <shogun/features/Features.h> 00017 00018 namespace shogun 00019 { 00020 00021 class CFeatures; 00022 00026 class CICAConverter: public CConverter 00027 { 00028 public: 00029 00031 CICAConverter(); 00032 00034 virtual ~CICAConverter(); 00035 00039 virtual CFeatures* apply(CFeatures* features) = 0; 00040 00045 void set_mixing_matrix(SGMatrix<float64_t>mixing_matrix); 00046 00050 SGMatrix<float64_t> get_mixing_matrix() const; 00051 00056 void set_max_iter(int iter); 00057 00061 int get_max_iter() const; 00062 00066 void set_tol(float64_t tol); 00067 00071 float64_t get_tol() const; 00072 00074 virtual const char* get_name() const { return "ICAConverter"; }; 00075 00076 protected: 00077 00079 void init(); 00080 00082 SGMatrix<float64_t> m_mixing_matrix; 00083 00085 int max_iter; 00086 00088 float64_t tol; 00089 }; 00090 } 00091 #endif // HAVE_EIGEN3 00092 #endif // ICACONVERTER