![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
#include <aims/math/pca.h>
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 |
AimsPCA::AimsPCA | ( | int | significantNumberOfVp, |
bool | normalize = false , |
||
bool | center = true |
||
) |
|
inline |
Definition at line 47 of file pca.h.
References doIt(), eigenValues(), eigenVectors(), mean(), minimalInertia(), noiseInertia(), noiseVariance(), projection(), projectionMatrix(), reconstructionError2(), reconstructionErrorMatrix(), relativeUnreconstructedVariance(), selectedEigenVectors(), setMinimalInertia(), setSignificantNumberOfVp(), significantInertia(), significantNumberOfVp(), totalVariance(), unreconstructedVariance(), and var().
|
protected |
Referenced by valid().
void AimsPCA::doIt | ( | const AimsData< T > & | individuals | ) |
Definition at line 59 of file pca_d.h.
References _center, _computed, _eigenValues, _eigenVectors, _matricesComputed, _mean, _normalize, _validPca, _var, AimsData< T >::dimX(), AimsData< T >::dimY(), AimsData< T >::dimZ(), AimsSVD< T >::doit(), ForEach2d, AimsSVD< T >::setReturnType(), and AimsSVD< T >::sort().
Referenced by doIt(), and ~AimsPCA().
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 |
Referenced by ~AimsPCA().
const AimsData<float>& AimsPCA::eigenVectors | ( | ) | const |
Referenced by ~AimsPCA().
const std::vector<float>& AimsPCA::mean | ( | ) | const |
Referenced by ~AimsPCA().
float AimsPCA::minimalInertia | ( | ) | const |
Referenced by ~AimsPCA().
float AimsPCA::noiseInertia | ( | ) |
Referenced by ~AimsPCA().
float AimsPCA::noiseVariance | ( | float & | meanNorm | ) |
Referenced by ~AimsPCA().
Referenced by ~AimsPCA().
const AimsData<float>& AimsPCA::projectionMatrix | ( | ) |
Referenced by ~AimsPCA().
float AimsPCA::reconstructionError2 | ( | const AimsData< float > & | individual | ) |
Referenced by ~AimsPCA().
const AimsData<float>& AimsPCA::reconstructionErrorMatrix | ( | ) |
Referenced by ~AimsPCA().
float AimsPCA::relativeUnreconstructedVariance | ( | float & | meanNorm | ) |
float AimsPCA::relativeUnreconstructedVariance | ( | ) |
Referenced by ~AimsPCA().
AimsData<float> AimsPCA::selectedEigenVectors | ( | ) | const |
Referenced by ~AimsPCA().
void AimsPCA::setMinimalInertia | ( | float | inertiaLimit | ) |
Referenced by ~AimsPCA().
void AimsPCA::setSignificantNumberOfVp | ( | int | significantNumberOfVp | ) |
Referenced by ~AimsPCA().
float AimsPCA::significantInertia | ( | ) |
Referenced by ~AimsPCA().
float AimsPCA::significantNumberOfVp | ( | ) | const |
Referenced by ~AimsPCA().
double AimsPCA::totalVariance | ( | float & | meanNorm | ) | const |
Referenced by ~AimsPCA().
float AimsPCA::unreconstructedVariance | ( | ) |
Referenced by ~AimsPCA().
|
inline |
Definition at line 83 of file pca.h.
References _validPca, and computeErrorAndProjMatrices().
const std::vector<float>& AimsPCA::var | ( | ) | const |
Referenced by ~AimsPCA().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |