aimsalgo  5.1.2
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 carto::rc_ptr< carto::Volume< T > > &individuals)
 
template<class T >
void doIt (const std::list< Point3d > &selectedPoints, const carto::rc_ptr< carto::Volume< 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 ()
 
carto::VolumeRef< float > projection (const carto::rc_ptr< carto::Volume< float > > &individual)
 
float reconstructionError2 (const carto::rc_ptr< carto::Volume< float > > &individual)
 
const carto::VolumeRef< float > & projectionMatrix ()
 
const carto::VolumeRef< float > & reconstructionErrorMatrix ()
 
const std::vector< float > & eigenValues () const
 
const carto::VolumeRef< float > & eigenVectors () const
 
carto::VolumeRef< 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
 
carto::VolumeRef< float > _projectionMatrix
 
carto::VolumeRef< float > _errorMatrix
 
std::vector< float > _eigenValues
 
carto::VolumeRef< float > _eigenVectors
 
carto::VolumeRef< float > _selectedEigenVectors
 
carto::VolumeRef< 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()

AimsPCA::~AimsPCA ( )
inline

Definition at line 47 of file pca.h.

Member Function Documentation

◆ computeErrorAndProjMatrices()

void AimsPCA::computeErrorAndProjMatrices ( )
protected

◆ doIt() [1/2]

◆ doIt() [2/2]

template<typename T >
void AimsPCA::doIt ( const std::list< Point3d > &  selectedPoints,
const carto::rc_ptr< carto::Volume< T > > &  data 
)

Definition at line 41 of file pca_d.h.

References carto::VolumeRef< class >::at(), doIt(), and aims::meshdistance::max().

◆ eigenValues()

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

◆ eigenVectors()

const carto::VolumeRef<float>& AimsPCA::eigenVectors ( ) const

◆ mean()

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

◆ minimalInertia()

float AimsPCA::minimalInertia ( ) const

◆ noiseInertia()

float AimsPCA::noiseInertia ( )

◆ noiseVariance()

float AimsPCA::noiseVariance ( float &  meanNorm)

◆ projection()

carto::VolumeRef<float> AimsPCA::projection ( const carto::rc_ptr< carto::Volume< float > > &  individual)

◆ projectionMatrix()

const carto::VolumeRef<float>& AimsPCA::projectionMatrix ( )

◆ reconstructionError2()

float AimsPCA::reconstructionError2 ( const carto::rc_ptr< carto::Volume< float > > &  individual)

◆ reconstructionErrorMatrix()

const carto::VolumeRef<float>& AimsPCA::reconstructionErrorMatrix ( )

◆ relativeUnreconstructedVariance() [1/2]

float AimsPCA::relativeUnreconstructedVariance ( )

◆ relativeUnreconstructedVariance() [2/2]

float AimsPCA::relativeUnreconstructedVariance ( float &  meanNorm)

◆ selectedEigenVectors()

carto::VolumeRef<float> AimsPCA::selectedEigenVectors ( ) const

◆ setMinimalInertia()

void AimsPCA::setMinimalInertia ( float  inertiaLimit)

◆ setSignificantNumberOfVp()

void AimsPCA::setSignificantNumberOfVp ( int  significantNumberOfVp)

◆ significantInertia()

float AimsPCA::significantInertia ( )

◆ significantNumberOfVp()

float AimsPCA::significantNumberOfVp ( ) const

◆ totalVariance()

double AimsPCA::totalVariance ( float &  meanNorm) const

◆ unreconstructedVariance()

float AimsPCA::unreconstructedVariance ( )

◆ valid()

bool AimsPCA::valid ( ) const
inline

Definition at line 85 of file pca.h.

References _validPca.

◆ var()

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

Member Data Documentation

◆ _center

bool AimsPCA::_center
protected

Definition at line 92 of file pca.h.

Referenced by doIt().

◆ _computed

bool AimsPCA::_computed
protected

Definition at line 90 of file pca.h.

Referenced by doIt().

◆ _eigenValues

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

Definition at line 100 of file pca.h.

Referenced by doIt().

◆ _eigenVectors

carto::VolumeRef<float> AimsPCA::_eigenVectors
protected

Definition at line 101 of file pca.h.

Referenced by doIt().

◆ _errorMatrix

carto::VolumeRef<float> AimsPCA::_errorMatrix
protected

Definition at line 99 of file pca.h.

◆ _matricesComputed

bool AimsPCA::_matricesComputed
protected

Definition at line 91 of file pca.h.

Referenced by doIt().

◆ _mean

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

Definition at line 94 of file pca.h.

Referenced by doIt().

◆ _minimalInertia

float AimsPCA::_minimalInertia
protected

Definition at line 106 of file pca.h.

◆ _normalize

bool AimsPCA::_normalize
protected

Definition at line 93 of file pca.h.

Referenced by doIt().

◆ _projectionMatrix

carto::VolumeRef<float> AimsPCA::_projectionMatrix
protected

Definition at line 98 of file pca.h.

◆ _projectionVector

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

Definition at line 97 of file pca.h.

◆ _selectedEigenVectors

carto::VolumeRef<float> AimsPCA::_selectedEigenVectors
protected

Definition at line 102 of file pca.h.

◆ _selectedEigenVectorsTr

carto::VolumeRef<float> AimsPCA::_selectedEigenVectorsTr
protected

Definition at line 103 of file pca.h.

◆ _significantNumberOfVp

int AimsPCA::_significantNumberOfVp
protected

Definition at line 105 of file pca.h.

◆ _validPca

bool AimsPCA::_validPca
protected

Definition at line 89 of file pca.h.

Referenced by doIt(), and valid().

◆ _var

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

Definition at line 95 of file pca.h.

Referenced by doIt().


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