sing | R Documentation |
sing()
calculates the singular values of a given data matrix D
. This is
done with a call to svd()
, and is included in pcpr
to enable the quick
characterization of a data matrix's raw low-rank structure, to help decide
whether rrmc()
or root_pcp()
is the more appropriate PCP algorithm to
employ in conjunction with D
.
Experimentally, the rrmc()
approach to PCP has best been able to handle
those datasets that are governed by complex underlying patterns characterized
by slowly decaying singular values, such as EH data. For observed data with a
well-defined low rank structure (rapidly decaying singular values),
root_pcp()
may offer a better model estimate.
sing(D)
D |
The input data matrix (cannot have |
A numeric vector containing the singular values of D
.
"Singular value decomposition" Wikipedia article.
matrix_rank()
data <- sim_data()
sing(data$D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.