Developer Documentation

Public Member Functions | Private Types | Private Attributes | List of all members
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

  _points | set 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

  _points | set of points
  _first | First main axis
  _second | second main axis
  _third | third main axis

Definition at line 169 of file PCAT_impl.hh.

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

- OpenFlipper/libs_required/Math_Tools/PCA/PCA.hh
- OpenFlipper/libs_required/Math_Tools/PCA/PCAT_impl.hh