SVDmat: Calculates SVD of Matrix in MATLAB

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/SVDmat.R

Description

This function Calculates SVD of Matrix in MATLAB and produces the "economy size" decomposition.

Usage

1
SVDmat(E,maxTriess = 3000,intervall = 30)

Arguments

E

a numeric matrix

maxTriess

The maximum number of times the connection is check for an answer from the MATLAB server before giving up. Default values is 3000 times.

intervall

The interval in seconds between each poll for an answer. Default interval is 30 (second).

Details

This function use R working directory to biulte and read files. So there should be enough space. All function's files remove after finishing calucation. This function is commonly used in big data.

Value

d

a vector containing the positive singular values

u

a matrix with the corresponding left singular vectors

v

a matrix with the corresponding right singular vectors

Note

When this function stops abnormally (due an error or warning in MATLAB), you should close the MATLAB software window and disconnect the software. By performing this function again, the connection will be established. When more times need to the connection check for an answer from the MATLAB server before giving up, "maxTries" can be increase. When more times need to increase seconds between each poll for an answer, "interval" can be increase.

Author(s)

Sayyed Reza Alavian

References

[1]Alavian, S. R. (2019). Creating LRQMM package for predicting the breeding value of animals by corrected mixed quantile regression (Unpublished master's thesis). Ferdowsi University Of Mashhad. Mashhad. Iran.[Persian].

Examples

1
2
3
4
5
6
M <- rbind(
  c(20, 10, 15,  0,  2),
  c(10,  5,  8,  1,  0),
  c( 0,  1,  2,  6,  3))
#before running this code, be sure for Matlab installation in your system.
# >SVDmat(M)

LRQMM documentation built on Oct. 4, 2021, 9:08 a.m.

Related to SVDmat in LRQMM...