![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
#include <aims/math/svd.h>
Public Types | |
enum | SVDReturnType { MatrixOfSingularValues, VectorOfSingularValues } |
Public Member Functions | |
void | setReturnType (SVDReturnType rt) |
AimsData< T > | doit (AimsData< T > &, AimsData< T > *v=NULL) |
Singular Value Decomposition. More... | |
void | sort (AimsData< T > &, AimsData< T > &, AimsData< T > *v=NULL) |
sort the U and V matrices and the W vector in decreasing order More... | |
AimsData< T > | backwardSubstitution (const AimsData< T > &U, const AimsData< T > &W, const AimsData< T > &V, const AimsData< T > &S) |
AimsSVD (SVDReturnType rt=MatrixOfSingularValues) | |
Constructor and destructor. More... | |
virtual | ~AimsSVD () |
destructor More... | |
enum AimsSVD::SVDReturnType |
|
inline |
AimsData< T > AimsSVD< T >::backwardSubstitution | ( | const AimsData< T > & | U, |
const AimsData< T > & | W, | ||
const AimsData< T > & | V, | ||
const AimsData< T > & | S | ||
) |
Referenced by AimsSVD< T >::setReturnType().
Singular Value Decomposition.
\ This function is adapted from the Numerical Recipes in C. \ Returns the diagonal matrix of singular values W of the input matrix if the SVDReturnType is set to MatrixOfSingularValues or a vector of singular values if set to VectorOfSingularValues. \ The first parameter is the input matrix. On output, it is replaced by the (m*n) matrix U. \
v | is output as the (n*n) matrix V (and not its transpose!). |
Referenced by AimsPCA::doIt(), aims::ProbabilisticPcaElement::doIt(), aims::PpcaAnalyserElement::init(), aims::PpcaAnalyserElement::newStep2(), aims::ProbabilisticPcaElement::noiseVariance(), and AimsSVD< T >::setReturnType().
|
inline |
Definition at line 73 of file svd.h.
References AimsSVD< T >::backwardSubstitution(), AimsSVD< T >::doit(), and AimsSVD< T >::sort().
Referenced by AimsPCA::doIt(), aims::ProbabilisticPcaElement::doIt(), aims::PpcaAnalyserElement::init(), aims::PpcaAnalyserElement::newStep2(), and aims::ProbabilisticPcaElement::noiseVariance().
void AimsSVD< T >::sort | ( | AimsData< T > & | , |
AimsData< T > & | , | ||
AimsData< T > * | v = NULL |
||
) |
sort the U and V matrices and the W vector in decreasing order
Referenced by AimsPCA::doIt(), aims::ProbabilisticPcaElement::doIt(), aims::PpcaAnalyserElement::init(), aims::PpcaAnalyserElement::newStep2(), aims::ProbabilisticPcaElement::noiseVariance(), and AimsSVD< T >::setReturnType().