![]() |
aimsalgo 6.0.0
Neuroimaging image processing
|
#include <aims/math/svd.h>
Public Types | |
| enum | SVDReturnType { MatrixOfSingularValues , VectorOfSingularValues } |
Public Member Functions | |
| AimsSVD (SVDReturnType rt=MatrixOfSingularValues) | |
| Constructor and destructor. | |
| virtual | ~AimsSVD () |
| destructor | |
| void | setReturnType (SVDReturnType rt) |
| carto::VolumeRef< T > | doit (carto::VolumeRef< T > &, carto::VolumeRef< T > *v=NULL) |
| Singular Value Decomposition. | |
| void | sort (carto::VolumeRef< T > &, carto::VolumeRef< T > &, carto::VolumeRef< T > *v=NULL) |
| sort the U and V matrices and the W vector in decreasing order | |
| carto::VolumeRef< T > | backwardSubstitution (const carto::VolumeRef< T > &U, const carto::VolumeRef< T > &W, const carto::VolumeRef< T > &V, const carto::VolumeRef< T > &S) |
| enum AimsSVD::SVDReturnType |
|
inline |
Constructor and destructor.
constructor
Definition at line 71 of file svd.h.
References MatrixOfSingularValues.
| carto::VolumeRef< T > AimsSVD< T >::backwardSubstitution | ( | const carto::VolumeRef< T > & | U, |
| const carto::VolumeRef< T > & | W, | ||
| const carto::VolumeRef< T > & | V, | ||
| const carto::VolumeRef< T > & | S ) |
| carto::VolumeRef< T > AimsSVD< T >::doit | ( | carto::VolumeRef< T > & | , |
| carto::VolumeRef< T > * | v = NULL ) |
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 aims::DiscriminantAnalysisElement::doIt(), aims::ProbabilisticPcaElement::doIt(), AimsPCA::doIt(), aims::PpcaAnalyserElement::newStep2(), and aims::ProbabilisticPcaElement::noiseVariance().
|
inline |
Definition at line 76 of file svd.h.
Referenced by aims::ProbabilisticPcaElement::doIt(), AimsPCA::doIt(), aims::PpcaAnalyserElement::newStep2(), and aims::ProbabilisticPcaElement::noiseVariance().
| void AimsSVD< T >::sort | ( | carto::VolumeRef< T > & | , |
| carto::VolumeRef< T > & | , | ||
| carto::VolumeRef< T > * | v = NULL ) |
sort the U and V matrices and the W vector in decreasing order
Referenced by aims::ProbabilisticPcaElement::doIt(), AimsPCA::doIt(), aims::PpcaAnalyserElement::newStep2(), and aims::ProbabilisticPcaElement::noiseVariance().