#include <rtcPCA.h>
Public Types | |
typedef std::vector< Vec< T, N > > | VecData |
Public Member Functions | |
SMat< T, N > & | computeTransformMatrix (const VecData &data) |
Compute transform matrix. | |
SMat< T, N > & | computeTransformMatrix (const VarMat< T > &data) |
Compute transform matrix. | |
PrincipalComponentAnalysis () | |
Constructor. | |
Vec< T, N > & | transform (const Vec< T, N > &src, Vec< T, N > &dest) const |
Transforms a single vector according to a previously computed transformation matrix. | |
Vec< T, N > & | transform (Vec< T, N > &srcdest) const |
Transforms a single vector according to a previously computed transformation matrix. | |
VarMat< T > & | transform (VarMat< T > &data) const |
Transforms the data according to a previously computed transformation matrix. | |
VecData & | transform (VecData &data) const |
Transforms the data according to a previously computed transformation matrix. | |
~PrincipalComponentAnalysis () | |
Destructor. | |
Public Attributes | |
SMat< T, N > | correlation_coefficient |
Vec< T, N > | eigen_values |
SMat< T, N > | eigen_vectors |
Vec< T, N > | offset |
SMat< T, N > | transform_matrix |
Protected Member Functions | |
SMat< T, N > & | covarianceMatrixOfRows (const VecData &src, SMat< T, N > &covariance) const |
Vec< T, N > & | meanOfRows (const VecData &src, Vec< T, N > &mean) const |
Protected Attributes | |
bool | transform_matrix_computed |
It receives a set of input vectors in form of a matrix (each row of the matrix corresponds to an input vector), which will be transformed with PCA.
typedef std::vector< Vec<T,N> > rtc::PrincipalComponentAnalysis< T, N >::VecData |
rtc::PrincipalComponentAnalysis< T, N >::PrincipalComponentAnalysis | ( | ) | [inline] |
rtc::PrincipalComponentAnalysis< T, N >::~PrincipalComponentAnalysis | ( | ) | [inline] |
SMat< T, N > & rtc::PrincipalComponentAnalysis< T, N >::computeTransformMatrix | ( | const VecData & | data | ) | [inline] |
SMat< T, N > & rtc::PrincipalComponentAnalysis< T, N >::computeTransformMatrix | ( | const VarMat< T > & | data | ) | [inline] |
SMat< T, N > & rtc::PrincipalComponentAnalysis< T, N >::covarianceMatrixOfRows | ( | const VecData & | src, |
SMat< T, N > & | covariance | ||
) | const [inline, protected] |
Vec< T, N > & rtc::PrincipalComponentAnalysis< T, N >::meanOfRows | ( | const VecData & | src, |
Vec< T, N > & | mean | ||
) | const [inline, protected] |
Vec< T, N > & rtc::PrincipalComponentAnalysis< T, N >::transform | ( | const Vec< T, N > & | src, |
Vec< T, N > & | dest | ||
) | const [inline] |
Vec< T, N > & rtc::PrincipalComponentAnalysis< T, N >::transform | ( | Vec< T, N > & | srcdest | ) | const [inline] |
VarMat< T > & rtc::PrincipalComponentAnalysis< T, N >::transform | ( | VarMat< T > & | data | ) | const [inline] |
std::vector< Vec< T, N > > & rtc::PrincipalComponentAnalysis< T, N >::transform | ( | VecData & | data | ) | const [inline] |
SMat<T,N> rtc::PrincipalComponentAnalysis< T, N >::correlation_coefficient |
Vec<T,N> rtc::PrincipalComponentAnalysis< T, N >::eigen_values |
SMat<T,N> rtc::PrincipalComponentAnalysis< T, N >::eigen_vectors |
Vec<T,N> rtc::PrincipalComponentAnalysis< T, N >::offset |
SMat<T,N> rtc::PrincipalComponentAnalysis< T, N >::transform_matrix |
bool rtc::PrincipalComponentAnalysis< T, N >::transform_matrix_computed [protected] |