irlba
A C++ library for IRLBA
Loading...
Searching...
No Matches
irlba::PcaResults< EigenMatrix_, EigenVector_ > Struct Template Reference

Results of the IRLBA-based PCA by pca(). More...

#include <pca.hpp>

Collaboration diagram for irlba::PcaResults< EigenMatrix_, EigenVector_ >:

Public Attributes

EigenMatrix_ scores
 
EigenMatrix_ rotation
 
EigenVector_ variances
 
Metrics metrics
 

Detailed Description

template<class EigenMatrix_, class EigenVector_>
struct irlba::PcaResults< EigenMatrix_, EigenVector_ >

Results of the IRLBA-based PCA by pca().

Template Parameters
EigenMatrix_A dense floating-point Eigen::Matrix class.
EigenVector_A floating-point Eigen::Vector class, typically of the same scalar type as EigenMatrix_.

Member Data Documentation

◆ metrics

template<class EigenMatrix_ , class EigenVector_ >
Metrics irlba::PcaResults< EigenMatrix_, EigenVector_ >::metrics

Metrics for the progress of the algorithm.

◆ rotation

template<class EigenMatrix_ , class EigenVector_ >
EigenMatrix_ irlba::PcaResults< EigenMatrix_, EigenVector_ >::rotation

Rotation matrix. Each row corresponds to an feature while each column corresponds to a principal component. The number of rows is equal to the number of rows in matrix, while the number of columns is equal to number (or less, if Options::cap_number is applied).

◆ scores

template<class EigenMatrix_ , class EigenVector_ >
EigenMatrix_ irlba::PcaResults< EigenMatrix_, EigenVector_ >::scores

Matrix of principal component scores. Each row corresponds to an observation while each column corresponds to a principal component. The number of rows is equal to the number of columns in matrix, while the number of columns is equal to number (or less, if Options::cap_number is applied).

◆ variances

template<class EigenMatrix_ , class EigenVector_ >
EigenVector_ irlba::PcaResults< EigenMatrix_, EigenVector_ >::variances

Variance explained by each principal component. The length of this vector is equal to number (or less, if Options::cap_number is applied).


The documentation for this struct was generated from the following file: