A.I.M.S algorithms


aims::ProbabilisticPcaElement Class Reference

#include <aims/math/ppca.h>

Collaboration diagram for aims::ProbabilisticPcaElement:

Public Member Functions

 ProbabilisticPcaElement (int nbOfSignificativeEV, double PIj=1.)
 
virtual ~ProbabilisticPcaElement ()
 
template<class T >
void doIt (const AimsData< T > &individuals, double distanceRef=0.)
 
template<class T >
void doIt (const std::list< Point3d > &selectedPoints, const AimsData< T > &data, double distanceRef=0.)
 
void setPIj (double PIj)
 
double distance (const AimsData< double > &individual)
 
double posteriorProbability (const AimsData< double > &individual, double pX)
 
double lnPosteriorProbability (const AimsData< double > &individual)
 
const AimsData< double > & mean () const
 
double noiseVariance () const
 
template<class T >
double noiseVariance (const AimsData< T > &individuals, double &normMean) const
 
double meanNorm ()
 
const AimsData< double > & eigenValues ()
 
const AimsData< double > & selectedEigenVectors ()
 
double normFactor () const
 

Protected Member Functions

double exponential (double x)
 

Protected Attributes

double _distanceRef
 
bool _computed
 
bool _valid
 
int _nbOfSignificantEV
 
double _PIj
 
AimsFastAllocationData< double > _mean
 
double _meanMean
 
double _meanNorm
 
AimsFastAllocationData< double > _x
 
AimsFastAllocationData< double > _xT
 
AimsFastAllocationData< double > _Wi
 
AimsFastAllocationData< double > _invCi
 
AimsFastAllocationData< double > _EValues
 
AimsFastAllocationData< double > _EVect
 
double _Sigma2
 
double _detCi
 
double _normFactor
 
double _lnAddFactor
 

Static Protected Attributes

static double * _exp
 

Detailed Description

Definition at line 44 of file ppca.h.

Constructor & Destructor Documentation

aims::ProbabilisticPcaElement::ProbabilisticPcaElement ( int  nbOfSignificativeEV,
double  PIj = 1. 
)
virtual aims::ProbabilisticPcaElement::~ProbabilisticPcaElement ( )
inlinevirtual

Definition at line 48 of file ppca.h.

Member Function Documentation

double aims::ProbabilisticPcaElement::distance ( const AimsData< double > &  individual)
inline

Definition at line 182 of file ppca.h.

References _computed, _distanceRef, _invCi, _mean, _valid, and AimsData< T >::dimX().

template<typename T >
void aims::ProbabilisticPcaElement::doIt ( const std::list< Point3d > &  selectedPoints,
const AimsData< T > &  data,
double  distanceRef = 0. 
)

Definition at line 54 of file ppca_d.h.

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

const AimsData<double>& aims::ProbabilisticPcaElement::eigenValues ( )
inline

Definition at line 87 of file ppca.h.

References _EValues.

Referenced by aims::ProbabilisticPca< T >::ProbabilisticPca().

double aims::ProbabilisticPcaElement::exponential ( double  x)
inlineprotected

Definition at line 94 of file ppca.h.

References _exp.

double aims::ProbabilisticPcaElement::lnPosteriorProbability ( const AimsData< double > &  individual)
inline

Definition at line 258 of file ppca.h.

References AimsData< T >::dimX(), and std::numeric_limits< class >::max().

const AimsData<double>& aims::ProbabilisticPcaElement::mean ( ) const
inline

Definition at line 77 of file ppca.h.

References _mean.

Referenced by doIt(), and noiseVariance().

double aims::ProbabilisticPcaElement::meanNorm ( )
inline

Definition at line 85 of file ppca.h.

References _meanNorm.

double aims::ProbabilisticPcaElement::noiseVariance ( ) const
inline

Definition at line 78 of file ppca.h.

References _Sigma2.

template<class T >
double aims::ProbabilisticPcaElement::noiseVariance ( const AimsData< T > &  individuals,
double &  normMean 
) const
double aims::ProbabilisticPcaElement::normFactor ( ) const
inline

Definition at line 90 of file ppca.h.

References _normFactor.

Referenced by aims::ProbabilisticPca< T >::ProbabilisticPca().

double aims::ProbabilisticPcaElement::posteriorProbability ( const AimsData< double > &  individual,
double  pX 
)
inline

Definition at line 218 of file ppca.h.

References AimsData< T >::dimX().

const AimsData<double>& aims::ProbabilisticPcaElement::selectedEigenVectors ( )
inline

Definition at line 88 of file ppca.h.

References _EVect.

void aims::ProbabilisticPcaElement::setPIj ( double  PIj)
inline

Definition at line 58 of file ppca.h.

References _computed, _detCi, _lnAddFactor, and _PIj.

Member Data Documentation

bool aims::ProbabilisticPcaElement::_computed
protected

Definition at line 103 of file ppca.h.

Referenced by distance(), doIt(), and setPIj().

double aims::ProbabilisticPcaElement::_detCi
protected

Definition at line 120 of file ppca.h.

Referenced by doIt(), and setPIj().

double aims::ProbabilisticPcaElement::_distanceRef
protected

Definition at line 102 of file ppca.h.

Referenced by distance(), and doIt().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_EValues
protected

Definition at line 116 of file ppca.h.

Referenced by doIt(), and eigenValues().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_EVect
protected

Definition at line 117 of file ppca.h.

Referenced by doIt(), and selectedEigenVectors().

double* aims::ProbabilisticPcaElement::_exp
staticprotected

Definition at line 93 of file ppca.h.

Referenced by exponential().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_invCi
protected

Definition at line 115 of file ppca.h.

Referenced by distance(), and doIt().

double aims::ProbabilisticPcaElement::_lnAddFactor
protected

Definition at line 122 of file ppca.h.

Referenced by doIt(), and setPIj().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_mean
protected

Definition at line 108 of file ppca.h.

Referenced by distance(), doIt(), and mean().

double aims::ProbabilisticPcaElement::_meanMean
protected

Definition at line 109 of file ppca.h.

double aims::ProbabilisticPcaElement::_meanNorm
protected

Definition at line 110 of file ppca.h.

Referenced by meanNorm().

int aims::ProbabilisticPcaElement::_nbOfSignificantEV
protected

Definition at line 105 of file ppca.h.

Referenced by doIt(), and noiseVariance().

double aims::ProbabilisticPcaElement::_normFactor
protected

Definition at line 121 of file ppca.h.

Referenced by doIt(), and normFactor().

double aims::ProbabilisticPcaElement::_PIj
protected

Definition at line 106 of file ppca.h.

Referenced by doIt(), and setPIj().

double aims::ProbabilisticPcaElement::_Sigma2
protected

Definition at line 118 of file ppca.h.

Referenced by doIt(), and noiseVariance().

bool aims::ProbabilisticPcaElement::_valid
protected

Definition at line 104 of file ppca.h.

Referenced by distance(), and doIt().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_Wi
protected

Definition at line 114 of file ppca.h.

Referenced by doIt().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_x
protected

Definition at line 111 of file ppca.h.

Referenced by doIt().

AimsFastAllocationData<double> aims::ProbabilisticPcaElement::_xT
protected

Definition at line 112 of file ppca.h.

Referenced by doIt().


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