SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FactorAnalysis.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 Fernando J. Iglesias Garcia
8  * Copyright (C) 2011-2013 Fernando J. Iglesias Garcia
9  */
10 
11 #ifndef FACTOR_ANALYSIS_H_
12 #define FACTOR_ANALYSIS_H_
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_EIGEN3
17 
18 namespace shogun
19 {
20 
28 {
29 public:
30 
33 
35  virtual ~CFactorAnalysis();
36 
38  virtual const char* get_name() const;
39 
44  virtual CFeatures* apply(CFeatures* features);
45 
50  void set_max_iteration(const int32_t max_iteration);
51 
56  int32_t get_max_iteration() const;
57 
62  void set_epsilon(const float64_t epsilon);
63 
68  float64_t get_epsilon() const;
69 
70 private:
71 
73  void init();
74 
75 private:
76 
78  int32_t m_max_iteration;
79 
81  float64_t m_epsilon;
82 
83 }; /* class CFactorAnalysis */
84 
85 } /* namespace shogun */
86 
87 #endif /* HAVE_EIGEN3 */
88 #endif /* FACTOR_ANALYSIS_H_ */

SHOGUN Machine Learning Toolbox - Documentation