Description Usage Arguments Value Examples
Computes SVD.
1 |
mat |
matrix, pre-processed input; can be sparse or full (pre-processing can be performed using |
method |
character, the algorithm to be used for svd. Default is irl. Currently supports 'irl' for irlba::irlba or 'svd' for stats::svd |
ncomp |
numeric, number of components; Default is 30 |
... |
(additional arguments for methods) |
SVD result - a list with the following elements:
da vector of the diagonal singular values of the input mat. Note that using svd will result in the full set of singular values, while irlba will only compute the first ncomp singular values.
ua matrix of with the left singular vectors of mat in the columns
va matrix of with the right singular vectors of mat in the columns
eigsumsum of the eigenvalues, for calculating percent variance explained
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.