makePositiveDefinite | R Documentation |
Take a semi-positive definite matrix and use the eigenvalue decomposition to obtain the nearest positive definite matrix
makePositiveDefinite(semiDefMat, relEig = 1e-06)
semiDefMat |
semi-pos-def matrix, symmetric |
relEig |
relative range of eigenvalues taken to define the pd matrix |
matrix size of semiDefMat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.