Description Usage Arguments Value Author(s) See Also Examples
View source: R/tolerance_eigen.R
tolerance_eigen
eliminates likely spurious components: any eigenvalue (squared singular value) below a tolerance level is elminated.
The (likely) spurious eigen values and vectors are then eliminated from $vectors
and $values
.
The use of a real positive value for tol
will eliminate any small valued components.
With tol
, tolerance_eigen
will stop if any singular values are complex or negative.
1 | tolerance_eigen(x, tol = sqrt(.Machine$double.eps), ...)
|
x |
A data matrix of size for input to the eigen value decomposition ( |
tol |
Default is |
... |
Further arguments to |
A list with two elements (like eigen
):
values |
A vector containing the eigen values of x > |
vectors |
A matrix whose columns contain the right singular vectors of x, present if nv > 0. Dimension |
Derek Beaton
1 2 3 4 5 | data(wine)
cor_X <- cor(as.matrix(wine$objective))
s_asis <- tolerance_eigen(cor_X)
s_.Machine <- tolerance_eigen(cor_X, tol=.Machine$double.eps)
s_000001 <- tolerance_eigen(cor_X, tol=.000001)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.