5 #ifndef BPP_NUMERIC_STAT_MVA_PRINCIPALCOMPONENTANALYSIS_H 6 #define BPP_NUMERIC_STAT_MVA_PRINCIPALCOMPONENTANALYSIS_H 9 #include "../../Matrix/Matrix.h" 46 const std::vector<double>& rowW,
47 const std::vector<double>& colW,
50 double tol = 0.0000001,
69 double tol = 0.0000001,
98 #endif // BPP_NUMERIC_STAT_MVA_PRINCIPALCOMPONENTANALYSIS_H The matrix template interface.
virtual ~PrincipalComponentAnalysis()
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_
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.