A.I.M.S algorithms


AimsPCA Class Reference

#include <aims/math/pca.h>

Collaboration diagram for AimsPCA:

Public Member Functions

 AimsPCA (int significantNumberOfVp, bool normalize=false, bool center=true)
 
 ~AimsPCA ()
 
template<class T >
void doIt (const AimsData< T > &individuals)
 
template<class T >
void doIt (const std::list< Point3d > &selectedPoints, const AimsData< T > &data)
 
float noiseVariance (float &meanNorm)
 
double totalVariance (float &meanNorm) const
 
float relativeUnreconstructedVariance (float &meanNorm)
 
void setSignificantNumberOfVp (int significantNumberOfVp)
 
void setMinimalInertia (float inertiaLimit)
 
float minimalInertia () const
 
float significantNumberOfVp () const
 
float significantInertia ()
 
float noiseInertia ()
 
float unreconstructedVariance ()
 
float relativeUnreconstructedVariance ()
 
AimsData< float > projection (const AimsData< float > &individual)
 
float reconstructionError2 (const AimsData< float > &individual)
 
const AimsData< float > & projectionMatrix ()
 
const AimsData< float > & reconstructionErrorMatrix ()
 
const std::vector< float > & eigenValues () const
 
const AimsData< float > & eigenVectors () const
 
AimsData< float > selectedEigenVectors () const
 
const std::vector< float > & mean () const
 
const std::vector< float > & var () const
 
bool valid () const
 

Protected Member Functions

void computeErrorAndProjMatrices ()
 

Protected Attributes

bool _validPca
 
bool _computed
 
bool _matricesComputed
 
bool _center
 
bool _normalize
 
std::vector< float > _mean
 
std::vector< float > _var
 
std::vector< float > _projectionVector
 
aims::AimsFastAllocationData
< float > 
_projectionMatrix
 
aims::AimsFastAllocationData
< float > 
_errorMatrix
 
std::vector< float > _eigenValues
 
aims::AimsFastAllocationData
< float > 
_eigenVectors
 
aims::AimsFastAllocationData
< float > 
_selectedEigenVectors
 
aims::AimsFastAllocationData
< float > 
_selectedEigenVectorsTr
 
int _significantNumberOfVp
 
float _minimalInertia
 

Detailed Description

Definition at line 43 of file pca.h.

Constructor & Destructor Documentation

AimsPCA::AimsPCA ( int  significantNumberOfVp,
bool  normalize = false,
bool  center = true 
)
AimsPCA::~AimsPCA ( )
inline

Definition at line 47 of file pca.h.

Member Function Documentation

void AimsPCA::computeErrorAndProjMatrices ( )
protected
template<typename T >
void AimsPCA::doIt ( const std::list< Point3d > &  selectedPoints,
const AimsData< T > &  data 
)

Definition at line 42 of file pca_d.h.

References AimsData< T >::dimT(), doIt(), and aims::meshdistance::max().

const std::vector<float>& AimsPCA::eigenValues ( ) const
const AimsData<float>& AimsPCA::eigenVectors ( ) const
const std::vector<float>& AimsPCA::mean ( ) const
float AimsPCA::minimalInertia ( ) const
float AimsPCA::noiseInertia ( )
float AimsPCA::noiseVariance ( float &  meanNorm)
AimsData<float> AimsPCA::projection ( const AimsData< float > &  individual)
const AimsData<float>& AimsPCA::projectionMatrix ( )
float AimsPCA::reconstructionError2 ( const AimsData< float > &  individual)
const AimsData<float>& AimsPCA::reconstructionErrorMatrix ( )
float AimsPCA::relativeUnreconstructedVariance ( float &  meanNorm)
float AimsPCA::relativeUnreconstructedVariance ( )
AimsData<float> AimsPCA::selectedEigenVectors ( ) const
void AimsPCA::setMinimalInertia ( float  inertiaLimit)
void AimsPCA::setSignificantNumberOfVp ( int  significantNumberOfVp)
float AimsPCA::significantInertia ( )
float AimsPCA::significantNumberOfVp ( ) const
double AimsPCA::totalVariance ( float &  meanNorm) const
float AimsPCA::unreconstructedVariance ( )
bool AimsPCA::valid ( ) const
inline

Definition at line 83 of file pca.h.

References _validPca.

const std::vector<float>& AimsPCA::var ( ) const

Member Data Documentation

bool AimsPCA::_center
protected

Definition at line 90 of file pca.h.

Referenced by doIt().

bool AimsPCA::_computed
protected

Definition at line 88 of file pca.h.

Referenced by doIt().

std::vector<float> AimsPCA::_eigenValues
protected

Definition at line 98 of file pca.h.

Referenced by doIt().

aims::AimsFastAllocationData<float> AimsPCA::_eigenVectors
protected

Definition at line 99 of file pca.h.

Referenced by doIt().

aims::AimsFastAllocationData<float> AimsPCA::_errorMatrix
protected

Definition at line 97 of file pca.h.

bool AimsPCA::_matricesComputed
protected

Definition at line 89 of file pca.h.

Referenced by doIt().

std::vector<float> AimsPCA::_mean
protected

Definition at line 92 of file pca.h.

Referenced by doIt().

float AimsPCA::_minimalInertia
protected

Definition at line 104 of file pca.h.

bool AimsPCA::_normalize
protected

Definition at line 91 of file pca.h.

Referenced by doIt().

aims::AimsFastAllocationData<float> AimsPCA::_projectionMatrix
protected

Definition at line 96 of file pca.h.

std::vector<float> AimsPCA::_projectionVector
protected

Definition at line 95 of file pca.h.

aims::AimsFastAllocationData<float> AimsPCA::_selectedEigenVectors
protected

Definition at line 100 of file pca.h.

aims::AimsFastAllocationData<float> AimsPCA::_selectedEigenVectorsTr
protected

Definition at line 101 of file pca.h.

int AimsPCA::_significantNumberOfVp
protected

Definition at line 103 of file pca.h.

bool AimsPCA::_validPca
protected

Definition at line 87 of file pca.h.

Referenced by doIt(), and valid().

std::vector<float> AimsPCA::_var
protected

Definition at line 93 of file pca.h.

Referenced by doIt().


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