mySVD | R Documentation |
The input data is assumed to be a matrix. When algorithms of MWCAParams and CoupledMWCAParams are specified as "mySVD", This function is called in MWCA and CoupledMWCA.
mySVD(Xn, k)
Xn |
The input matrix which has N-rows and M-columns. |
k |
The rank parameter (k <= min(N,M)) |
The output matrix which has N-rows and k-columns.
Koki Tsuyuzaki
if(interactive()){
# Test data
matdata <- matrix(runif(10*20), nrow=10, ncol=20)
# Perform SVD
mySVD(matdata, k=3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.