SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
FactorAnalysis.h
Go to the documentation of this file.
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 Fernando J. Iglesias Garcia
00008  * Copyright (C) 2011-2013 Fernando J. Iglesias Garcia
00009  */
00010 
00011 #ifndef FACTOR_ANALYSIS_H_
00012 #define FACTOR_ANALYSIS_H_
00013 #include <shogun/lib/config.h>
00014 #ifdef HAVE_EIGEN3
00015 #include <shogun/converter/EmbeddingConverter.h>
00016 #include <shogun/features/Features.h>
00017 
00018 namespace shogun
00019 {
00020 
00027 class CFactorAnalysis : public CEmbeddingConverter
00028 {
00029 public:
00030 
00032     CFactorAnalysis();
00033 
00035     virtual ~CFactorAnalysis();
00036 
00038     virtual const char* get_name() const;
00039 
00044     virtual CFeatures* apply(CFeatures* features);
00045 
00050     void set_max_iteration(const int32_t max_iteration);
00051 
00056     int32_t get_max_iteration() const;
00057 
00062     void set_epsilon(const float64_t epsilon);
00063 
00068     float64_t get_epsilon() const;
00069 
00070 private:
00071 
00073     void init();
00074 
00075 private:
00076 
00078     int32_t m_max_iteration;
00079 
00081     float64_t m_epsilon;
00082 
00083 }; /* class CFactorAnalysis */
00084 
00085 } /* namespace shogun */
00086 
00087 #endif /* HAVE_EIGEN3 */
00088 #endif /* FACTOR_ANALYSIS_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation