Generic singular value decomposition algorithm.
More...
#include <Algebra.h>
template<typename T>
class pcl::GenericSVD< T >
Definition at line 440 of file Algebra.h.
◆ algorithm_implementation
Identifies the parent template class, which implements the underlying algorithm for this class.
Definition at line 448 of file Algebra.h.
◆ matrix
Represents a matrix involved in a singular value decomposition.
Definition at line 458 of file Algebra.h.
◆ matrix_element
Represents a matrix element.
Definition at line 468 of file Algebra.h.
◆ vector
Represents a vector involved in a singular value decomposition.
Definition at line 453 of file Algebra.h.
◆ vector_component
Represents a vector component.
Definition at line 463 of file Algebra.h.
◆ GenericSVD()
Singular Value Decomposition: A = U*W*Vt
The dimensions of A are n rows and m columns. U is an n x m matrix. The m components of W are the positive diagonal elements of W, and each column of V (m x m) is the eigenvector for the corresponding element of W.
On output, this constructor stores U, W and V in the corresponding members of this object.
Definition at line 500 of file Algebra.h.
◆ IndexOfLargestSingularValue()
Returns the column index of the largest eigenvector in matrix V. This is the index of the largest component of vector W.
Definition at line 512 of file Algebra.h.
◆ IndexOfSmallestSingularValue()
Returns the column index of the smallest eigenvector in matrix V. This is the index of the smallest nonzero component of vector W.
Before calling this function, you should edit the components of vector W to set to zero all singular values below a suitable tolerance. For example, using the machine epsilon:
...
SVD svd( A );
for ( int i = 0; i < svd.W.Length(); ++i )
if ( 1 + svd.W[i] == 1 )
svd.W[i] = 0;
int i = svd.IndexOfSmallestSingularValue();
...
64-bit floating point real matrix.
Definition at line 536 of file Algebra.h.
This is the n x m matrix resulting from the singular value decomposition A = U*W*Vt. n and m are the rows and columns of the decomposed matrix A.
Definition at line 474 of file Algebra.h.
Each column of this m x m matrix is the eigenvector for the corresponding element of W in a singular value decomposition A = U*W*Vt. m is the number of columns in the decomposed matrix A.
Definition at line 488 of file Algebra.h.
The components of this vector are the m (positive) diagonal elements of the matrix W in a singular value decomposition A = U*W*Vt. m is the number of columns in the decomposed matrix A.
Definition at line 481 of file Algebra.h.
The documentation for this class was generated from the following file: