spd.dist | R Documentation |
Function implements several distance measures between symmetric, positive-definite matrices.
spd.dist(x, y, method = "euclidean", ...)
x, y |
Symmetric, positive-definite matrices |
method |
The distance measure. See details. |
Allowable distance measures are
"euclidean": The Frobenius norm of the difference x-y
.
"logeuclidean": The Frobenius norm of the difference log(x)-log(y)
in the tangent space..
"cholesky": The Frobenius norm of the difference between the cholesky factors
of x
and y
. Not affinely invariant.
"riemannian": The Riemmanian distance proposed by Barachant, et al. (2013)
"stein": The square root of Jensen-Bregman log determinant divergence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.