A type used to hold the details of a principal component analysis.
More...
#include <SpecImage.hpp>
|
int | k |
| The number of principal components found. More...
|
|
size_t | m |
| The number of rows of the matrix. More...
|
|
size_t | n |
| The number of columns of the matrix. More...
|
|
FPType | pca_tot |
| The sum total variance for all of the components. More...
|
|
std::unique_ptr< FPType[], cfree > | loadings |
| The n by k PCA loadings matrix, stored in column-major ordering. The loadings are returned in decreasing order of variance. More...
|
|
std::unique_ptr< FPType[], cfree > | scores |
| The m by k PCA scores matrix, stored in column-major ordering. More...
|
|
std::vector< FPType > | eigenvalues |
| The eigenvalues vector of length k corresponding to the variance accounted for in the \(i\)th component (i.e. the \(i\)th column of the loadings matrix). Thus the fraction of the variance accounted for in this component is given by eigenvalues[i]/pca_tot. More...
|
|
template<class FPType>
struct nag::pca_results< FPType >
A type used to hold the details of a principal component analysis.
For more information see: nag::SpecImage::pca.
Move assignment operator.
The eigenvalues vector of length k corresponding to the variance accounted for in the \(i\)th component (i.e. the \(i\)th column of the loadings matrix). Thus the fraction of the variance accounted for in this component is given by eigenvalues[i]/pca_tot.
The number of principal components found.
The n by k PCA loadings matrix, stored in column-major ordering. The loadings are returned in decreasing order of variance.
The number of rows of the matrix.
The number of columns of the matrix.
The sum total variance for all of the components.
The m by k PCA scores matrix, stored in column-major ordering.
The documentation for this struct was generated from the following file: