aimsalgo  5.0.5
Neuroimaging image processing
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::AimsPCA ( int  significantNumberOfVp,
bool  normalize = false,
bool  center = true 
)

◆ ~AimsPCA()

Member Function Documentation

◆ computeErrorAndProjMatrices()

void AimsPCA::computeErrorAndProjMatrices ( )
protected

Referenced by valid().

◆ doIt() [1/2]

◆ doIt() [2/2]

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().

◆ eigenValues()

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

Referenced by ~AimsPCA().

◆ eigenVectors()

const AimsData<float>& AimsPCA::eigenVectors ( ) const

Referenced by ~AimsPCA().

◆ mean()

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

Referenced by ~AimsPCA().

◆ minimalInertia()

float AimsPCA::minimalInertia ( ) const

Referenced by ~AimsPCA().

◆ noiseInertia()

float AimsPCA::noiseInertia ( )

Referenced by ~AimsPCA().

◆ noiseVariance()

float AimsPCA::noiseVariance ( float &  meanNorm)

Referenced by ~AimsPCA().

◆ projection()

AimsData<float> AimsPCA::projection ( const AimsData< float > &  individual)

Referenced by ~AimsPCA().

◆ projectionMatrix()

const AimsData<float>& AimsPCA::projectionMatrix ( )

Referenced by ~AimsPCA().

◆ reconstructionError2()

float AimsPCA::reconstructionError2 ( const AimsData< float > &  individual)

Referenced by ~AimsPCA().

◆ reconstructionErrorMatrix()

const AimsData<float>& AimsPCA::reconstructionErrorMatrix ( )

Referenced by ~AimsPCA().

◆ relativeUnreconstructedVariance() [1/2]

float AimsPCA::relativeUnreconstructedVariance ( float &  meanNorm)

◆ relativeUnreconstructedVariance() [2/2]

float AimsPCA::relativeUnreconstructedVariance ( )

Referenced by ~AimsPCA().

◆ selectedEigenVectors()

AimsData<float> AimsPCA::selectedEigenVectors ( ) const

Referenced by ~AimsPCA().

◆ setMinimalInertia()

void AimsPCA::setMinimalInertia ( float  inertiaLimit)

Referenced by ~AimsPCA().

◆ setSignificantNumberOfVp()

void AimsPCA::setSignificantNumberOfVp ( int  significantNumberOfVp)

Referenced by ~AimsPCA().

◆ significantInertia()

float AimsPCA::significantInertia ( )

Referenced by ~AimsPCA().

◆ significantNumberOfVp()

float AimsPCA::significantNumberOfVp ( ) const

Referenced by ~AimsPCA().

◆ totalVariance()

double AimsPCA::totalVariance ( float &  meanNorm) const

Referenced by ~AimsPCA().

◆ unreconstructedVariance()

float AimsPCA::unreconstructedVariance ( )

Referenced by ~AimsPCA().

◆ valid()

bool AimsPCA::valid ( ) const
inline

Definition at line 83 of file pca.h.

References _validPca, and computeErrorAndProjMatrices().

◆ var()

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

Referenced by ~AimsPCA().

Member Data Documentation

◆ _center

bool AimsPCA::_center
protected

Definition at line 90 of file pca.h.

Referenced by doIt().

◆ _computed

bool AimsPCA::_computed
protected

Definition at line 88 of file pca.h.

Referenced by doIt().

◆ _eigenValues

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

Definition at line 98 of file pca.h.

Referenced by doIt().

◆ _eigenVectors

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

Definition at line 99 of file pca.h.

Referenced by doIt().

◆ _errorMatrix

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

Definition at line 97 of file pca.h.

◆ _matricesComputed

bool AimsPCA::_matricesComputed
protected

Definition at line 89 of file pca.h.

Referenced by doIt().

◆ _mean

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

Definition at line 92 of file pca.h.

Referenced by doIt().

◆ _minimalInertia

float AimsPCA::_minimalInertia
protected

Definition at line 104 of file pca.h.

◆ _normalize

bool AimsPCA::_normalize
protected

Definition at line 91 of file pca.h.

Referenced by doIt().

◆ _projectionMatrix

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

Definition at line 96 of file pca.h.

◆ _projectionVector

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

Definition at line 95 of file pca.h.

◆ _selectedEigenVectors

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

Definition at line 100 of file pca.h.

◆ _selectedEigenVectorsTr

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

Definition at line 101 of file pca.h.

◆ _significantNumberOfVp

int AimsPCA::_significantNumberOfVp
protected

Definition at line 103 of file pca.h.

◆ _validPca

bool AimsPCA::_validPca
protected

Definition at line 87 of file pca.h.

Referenced by doIt(), and valid().

◆ _var

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: