41 #ifndef _PRINCIPALCOMPONENTANALYSIS_H_ 42 #define _PRINCIPALCOMPONENTANALYSIS_H_ 44 #include "../../Matrix/Matrix.h" 81 const std::vector<double>& rowW,
82 const std::vector<double>& colW,
85 double tol = 0.0000001,
101 const
Matrix<
double>& data,
103 bool centered = true,
105 double tol = 0.0000001,
137 #endif // _PRINCIPALCOMPONENTANALYSIS_H_ The matrix template interface.
PrincipalComponentAnalysis(const Matrix< double > &data, unsigned int nbAxes, const std::vector< double > &rowW, const std::vector< double > &colW, bool centered=true, bool scaled=true, double tol=0.0000001, bool verbose=true)
Build a new PrincipalComponentAnalysis object.
std::vector< double > columnSd_
This class allows to perform a correspondence analysis.
static void scale(Matrix< double > &matrix, const std::vector< double > &rowW)
This function allows to center an input matrix from its column means.
const std::vector< double > & getColumnSd() const
std::vector< double > columnMeans_
static void center(Matrix< double > &matrix, const std::vector< double > &rowW)
This function allows to center an input matrix from its column means.
const std::vector< double > & getColumnMeans() const
PrincipalComponentAnalysis * clone() const
Create a copy of this object and send a pointer to it.
This class allows to perform a principal component analysis.
The core class of a multivariate analysis.