Implementation of the randomized block krylov SVD policy. More...
Public Member Functions | |
RandomizedBlockKrylovSVDPolicy (const size_t maxIterations=2, const size_t blockSize=0) | |
Use randomized block krylov SVD method to perform the principal components analysis (PCA). More... | |
void | Apply (const arma::mat &data, const arma::mat ¢eredData, arma::mat &transformedData, arma::vec &eigVal, arma::mat &eigvec, const size_t rank) |
Apply Principal Component Analysis to the provided data set using the randomized block krylov SVD method. More... | |
size_t | BlockSize () const |
Get the block size. More... | |
size_t & | BlockSize () |
Modify the block size. More... | |
size_t | MaxIterations () const |
Get the number of iterations for the power method. More... | |
size_t & | MaxIterations () |
Modify the number of iterations for the power method. More... | |
Implementation of the randomized block krylov SVD policy.
Definition at line 26 of file randomized_block_krylov_method.hpp.
|
inline |
Use randomized block krylov SVD method to perform the principal components analysis (PCA).
maxIterations | Number of iterations for the power method (Default: 2). |
blockSize | The block size, must be >= rank (Default: rank + 10). |
Definition at line 37 of file randomized_block_krylov_method.hpp.
|
inline |
Apply Principal Component Analysis to the provided data set using the randomized block krylov SVD method.
data | Data matrix. |
centeredData | Centered data matrix. |
transformedData | Matrix to put results of PCA into. |
eigVal | Vector to put eigenvalues into. |
eigvec | Matrix to put eigenvectors (loadings) into. |
rank | Rank of the decomposition. |
Definition at line 56 of file randomized_block_krylov_method.hpp.
References RandomizedBlockKrylovSVD::Apply().
|
inline |
Get the block size.
Definition at line 86 of file randomized_block_krylov_method.hpp.
|
inline |
Modify the block size.
Definition at line 88 of file randomized_block_krylov_method.hpp.
|
inline |
Get the number of iterations for the power method.
Definition at line 81 of file randomized_block_krylov_method.hpp.
|
inline |
Modify the number of iterations for the power method.
Definition at line 83 of file randomized_block_krylov_method.hpp.