![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
#include <aims/math/ppca.h>
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 |
aims::ProbabilisticPcaElement::ProbabilisticPcaElement | ( | int | nbOfSignificativeEV, |
double | PIj = 1. |
||
) |
|
inlinevirtual |
|
inline |
Definition at line 182 of file ppca.h.
References _computed, _distanceRef, _invCi, _mean, _valid, AimsData< T >::dimX(), and sum().
Referenced by lnPosteriorProbability(), posteriorProbability(), and setPIj().
void aims::ProbabilisticPcaElement::doIt | ( | const AimsData< T > & | individuals, |
double | distanceRef = 0. |
||
) |
Definition at line 87 of file ppca_d.h.
References _computed, _detCi, _distanceRef, _EValues, _EVect, _invCi, _lnAddFactor, _mean, _nbOfSignificantEV, _normFactor, _PIj, _Sigma2, _valid, _Wi, _x, _xT, AimsData< T >::clone(), AimsData< T >::cross(), aims::meshdistance::cross(), AimsData< T >::dimT(), AimsData< T >::dimX(), AimsData< T >::dimY(), AimsData< T >::dimZ(), AimsSVD< T >::doit(), ForEach2d, AimsData< T >::maximum(), AimsSVD< T >::setReturnType(), AimsSVD< T >::sort(), AimsData< T >::transpose(), and aims::Writer< T >::write().
Referenced by doIt(), aims::ProbabilisticPca< T >::ProbabilisticPca(), and ~ProbabilisticPcaElement().
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().
|
inline |
Definition at line 87 of file ppca.h.
References _EValues.
Referenced by aims::ProbabilisticPca< T >::ProbabilisticPca().
|
inlineprotected |
|
inline |
Definition at line 258 of file ppca.h.
References _computed, _distanceRef, _invCi, _lnAddFactor, _mean, _valid, AimsData< T >::dimX(), distance(), std::numeric_limits< class >::max(), and sum().
Referenced by setPIj().
|
inline |
|
inline |
|
inline |
double aims::ProbabilisticPcaElement::noiseVariance | ( | const AimsData< T > & | individuals, |
double & | normMean | ||
) | const |
Definition at line 343 of file ppca_d.h.
References _nbOfSignificantEV, AimsData< T >::dimX(), AimsData< T >::dimY(), AimsSVD< T >::doit(), ForEach2d, mean(), AimsSVD< T >::setReturnType(), and AimsSVD< T >::sort().
|
inline |
Definition at line 90 of file ppca.h.
References _normFactor.
Referenced by aims::ProbabilisticPca< T >::ProbabilisticPca().
|
inline |
Definition at line 218 of file ppca.h.
References _computed, _distanceRef, _exp, _invCi, _mean, _normFactor, _PIj, _valid, AimsData< T >::dimX(), distance(), and sum().
Referenced by setPIj().
|
inline |
|
inline |
Definition at line 58 of file ppca.h.
References _computed, _detCi, _lnAddFactor, _PIj, distance(), lnPosteriorProbability(), and posteriorProbability().
|
protected |
Definition at line 103 of file ppca.h.
Referenced by distance(), doIt(), lnPosteriorProbability(), posteriorProbability(), and setPIj().
|
protected |
|
protected |
Definition at line 102 of file ppca.h.
Referenced by distance(), doIt(), lnPosteriorProbability(), aims::ProbabilisticPca< T >::nbOfClasses(), and posteriorProbability().
|
protected |
Definition at line 116 of file ppca.h.
Referenced by doIt(), and eigenValues().
|
protected |
Definition at line 117 of file ppca.h.
Referenced by doIt(), and selectedEigenVectors().
|
staticprotected |
Definition at line 93 of file ppca.h.
Referenced by posteriorProbability().
|
protected |
Definition at line 115 of file ppca.h.
Referenced by distance(), doIt(), lnPosteriorProbability(), and posteriorProbability().
|
protected |
Definition at line 122 of file ppca.h.
Referenced by doIt(), lnPosteriorProbability(), and setPIj().
|
protected |
Definition at line 108 of file ppca.h.
Referenced by distance(), doIt(), lnPosteriorProbability(), mean(), and posteriorProbability().
|
protected |
Definition at line 110 of file ppca.h.
Referenced by meanNorm().
|
protected |
Definition at line 105 of file ppca.h.
Referenced by doIt(), and noiseVariance().
|
protected |
Definition at line 121 of file ppca.h.
Referenced by doIt(), normFactor(), and posteriorProbability().
|
protected |
Definition at line 106 of file ppca.h.
Referenced by doIt(), aims::ProbabilisticPca< T >::nbOfClasses(), posteriorProbability(), and setPIj().
|
protected |
Definition at line 118 of file ppca.h.
Referenced by doIt(), and noiseVariance().
|
protected |
Definition at line 104 of file ppca.h.
Referenced by distance(), doIt(), lnPosteriorProbability(), and posteriorProbability().
|
protected |
|
protected |
|
protected |