![]() |
aimsalgo
5.1.2
Neuroimaging image processing
|
#include <aims/math/svd.h>
Public Types | |
enum | SVDReturnType { MatrixOfSingularValues , VectorOfSingularValues } |
Public Member Functions | |
AimsSVD (SVDReturnType rt=MatrixOfSingularValues) | |
Constructor and destructor. More... | |
virtual | ~AimsSVD () |
destructor More... | |
void | setReturnType (SVDReturnType rt) |
carto::VolumeRef< T > | doit (carto::VolumeRef< T > &, carto::VolumeRef< T > *v=NULL) |
Singular Value Decomposition. More... | |
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 More... | |
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 |
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(), AimsPCA::doIt(), aims::ProbabilisticPcaElement::doIt(), aims::PpcaAnalyserElement::newStep2(), and aims::ProbabilisticPcaElement::noiseVariance().
|
inline |
Definition at line 76 of file svd.h.
Referenced by AimsPCA::doIt(), aims::ProbabilisticPcaElement::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 AimsPCA::doIt(), aims::ProbabilisticPcaElement::doIt(), aims::PpcaAnalyserElement::newStep2(), and aims::ProbabilisticPcaElement::noiseVariance().