Developer Documentation
Pca::PCA< VectorT > Class Template Reference

Class for principal component Analysis. More...

#include </PCA.hh>

Public Member Functions

 PCA ()
 Constructor.
 
 PCA (std::vector< VectorT > &_points, VectorT &_first, VectorT &_second, VectorT &_third)
 
 ~PCA ()
 Destructor.
 
VectorT center_of_gravity (const std::vector< VectorT > &_points)
 
void pca (std::vector< VectorT > &_points, VectorT &_first, VectorT &_second, VectorT &_third)
 
std::vector< double > & getLastEigenValues ()
 
bool SymRightEigenproblem (Matrix &_mat_A, Matrix &_mat_VR, std::vector< double > &_vec_EV)
 

Private Types

typedef gmm::dense_matrix< double > Matrix
 
typedef std::vector< double > Vector
 

Private Attributes

std::vector< double > lastEigenValues_
 

Detailed Description

template<typename VectorT>
class Pca::PCA< VectorT >

Class for principal component Analysis.

Class for principal component Analysis

Definition at line 83 of file PCA.hh.

Constructor & Destructor Documentation

◆ PCA()

template<typename VectorT >
Pca::PCA< VectorT >::PCA ( std::vector< VectorT > &  _points,
VectorT _first,
VectorT _second,
VectorT _third 
)

Extended constructor Parameters : see pca()

Definition at line 85 of file PCAT_impl.hh.

Member Function Documentation

◆ center_of_gravity()

template<typename VectorT >
VectorT Pca::PCA< VectorT >::center_of_gravity ( const std::vector< VectorT > &  _points)
inline

Compute center of gravity for a vector of points

Parameters
_pointsset of points

Definition at line 104 of file PCAT_impl.hh.

◆ pca()

template<typename VectorT >
void Pca::PCA< VectorT >::pca ( std::vector< VectorT > &  _points,
VectorT _first,
VectorT _second,
VectorT _third 
)

Compute the principal component analysys for a vector of points

Parameters
_pointsset of points
_firstFirst main axis
_secondsecond main axis
_thirdthird main axis

Definition at line 169 of file PCAT_impl.hh.


The documentation for this class was generated from the following files: