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

Class for principal component Analysis. More...

#include </PCA.hh>

Public Member Functions

 PCA ()
 Constructor. More...
 
 PCA (std::vector< VectorT > &_points, VectorT &_first, VectorT &_second, VectorT &_third)
 
 ~PCA ()
 Destructor. More...
 
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.

Member Typedef Documentation

◆ Matrix

template<typename VectorT >
typedef gmm::dense_matrix<double> Pca::PCA< VectorT >::Matrix
private

Definition at line 85 of file PCA.hh.

◆ Vector

template<typename VectorT >
typedef std::vector< double > Pca::PCA< VectorT >::Vector
private

Definition at line 86 of file PCA.hh.

Constructor & Destructor Documentation

◆ PCA() [1/2]

template<typename VectorT >
Pca::PCA< VectorT >::PCA ( )
inline

Constructor.

Definition at line 91 of file PCA.hh.

◆ PCA() [2/2]

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.

◆ ~PCA()

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

Destructor.

Definition at line 91 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 103 of file PCAT_impl.hh.

◆ getLastEigenValues()

template<typename VectorT >
std::vector< double > & Pca::PCA< VectorT >::getLastEigenValues
inline

Definition at line 238 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.

◆ SymRightEigenproblem()

template<typename VectorT >
bool Pca::PCA< VectorT >::SymRightEigenproblem ( Matrix &  _mat_A,
Matrix &  _mat_VR,
std::vector< double > &  _vec_EV 
)

Definition at line 119 of file PCAT_impl.hh.

Member Data Documentation

◆ lastEigenValues_

template<typename VectorT >
std::vector<double> Pca::PCA< VectorT >::lastEigenValues_
private

Definition at line 123 of file PCA.hh.


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