psd2edm {edmcr} | R Documentation |
Linear Matrix Operator
Description
psd2edm
Transform a positive semi-definite matrix to a Euclidean Distance Matrix
Usage
psd2edm(S, V = NULL)
Arguments
S |
A symmetric, positive semi-definite matrix |
V |
A projection matrix satisfying V'1 = 0 and VV' = I |
Details
The psd2edm function performs the inverse operation of the edm2psd function,
taking a matrix in and transforming it to a matrix in
.
Therefore, psd2edm on is the inverse operator of edm2psd on
.
For a symmetric positive semi-definite matrix S, psd2edm(S) will be in .
Value
D A Euclidean Distance Matrix.
See Also
Examples
XY <- cbind(runif(100,0,1),runif(100,0,1))
S <- edm2psd(as.matrix(dist(XY)))
D <- psd2edm(S)
[Package edmcr version 0.2.0 Index]