mlpack
Public Member Functions | List of all members
mlpack::pca::ExactSVDPolicy Class Reference

Implementation of the exact SVD policy. More...

#include <exact_svd_method.hpp>

Public Member Functions

void Apply (const arma::mat &data, const arma::mat &centeredData, arma::mat &transformedData, arma::vec &eigVal, arma::mat &eigvec, const size_t)
 Apply Principal Component Analysis to the provided data set using the exact SVD method. More...
 

Detailed Description

Implementation of the exact SVD policy.

Member Function Documentation

◆ Apply()

void mlpack::pca::ExactSVDPolicy::Apply ( const arma::mat &  data,
const arma::mat &  centeredData,
arma::mat &  transformedData,
arma::vec &  eigVal,
arma::mat &  eigvec,
const size_t   
)
inline

Apply Principal Component Analysis to the provided data set using the exact SVD method.

Parameters
dataData matrix.
centeredDataCentered data matrix.
transformedDataMatrix to put results of PCA into.
eigValVector to put eigenvalues into.
eigvecMatrix to put eigenvectors (loadings) into.
*(rank) Rank of the decomposition.

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