bdSVD | R Documentation |
This function gets k first components from svd decomposition of numerical or Delayed Array
bdSVD(X, k = 0L, nev = 0L, bcenter = TRUE, bscale = TRUE)
X |
numerical or Delayed Array matrix |
k |
number of eigen values , this should satisfy k = min(n, m) - 1 |
nev |
(optional, default nev = n-1) Number of eigenvalues requested. This should satisfy 1<= nev <= n, where n is the size of matrix. |
bcenter |
(optional, defalut = TRUE) . If center is TRUE then centering is done by subtracting the column means (omitting NAs) of x from their corresponding columns, and if center is FALSE, no centering is done. |
bscale |
(optional, defalut = TRUE) . If scale is TRUE then scaling is done by dividing the (centered) columns of x by their standard deviations if center is TRUE, and the root mean square otherwise. If scale is FALSE, no scaling is done. |
u eigenvectors of AA^t, mxn and column orthogonal matrix
v eigenvectors of A^tA, nxn orthogonal matrix
d singular values, nxn diagonal matrix (non-negative real values)
n <- 500 A <- matrix(rnorm(n*n), nrow=n, ncol=n) # svd without normalization decsvd <- bdSVD( A, bscale = FALSE, bcenter = FALSE ) # No matrix normalization decsvd$d decsvd$u # svd with normalization decvsd <- bdSVD( A, bscale = TRUE, bcenter = TRUE) # Matrix normalization decsvd$d decsvd$u # svd with scaled matrix (sd) decvsd <- bdSVD( A, bscale = TRUE, bcenter = FALSE) # Scaled matrix decsvd$d decsvd$u # svd with centered matrix (sd) decvsd <- bdSVD( A, bscale = FALSE, bcenter = TRUE) # Centered matrix decsvd$d decsvd$u
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.