Description Usage Arguments Value Author(s) Examples
Checks if eigenvalues in a square matrix are positive.
1 | is.positive.definite(x, tol = 1e-08)
|
x |
A numeric square matrix. |
tol |
Tolerance. |
Returns FALSE
if any of the eigenvalues are less than or equal to 0.
Ivan Jacob Agaloos Pesigan
1 2 3 4 5 6 7 8 9 | Sigma <- matrix(
data = c(
225, 112.50, 56.25,
112.5, 225, 112.5,
56.25, 112.50, 225
),
ncol = 3
)
is.positive.definite(Sigma)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.