gram2edm {edmcr} | R Documentation |
Linear Matrix Operator
Description
gram2edm
Inverse Operator of edm2gram
Usage
gram2edm(B)
Arguments
B |
A centered, positive semi-definite matrix. |
Details
The edm2gram function performs the following transformation:
where is the space of symmetric, hollow matrices, negative definite on the space spanned by
and
is the space of centered positive definite matrices.
The gram2edm function performs the inverse operation, taking a matrix in and transforming it to a matrix in
.
Therfore, gram2edm on is the inverse operator of edm2gram on
.
Value
D A matrix in . If the input matrix B is a gram matrix, D is a Euclidean Distance Matrix.
See Also
Examples
X <- cbind(runif(100,0,1),runif(100,0,1))
G <- X %*% t(X)
gram2edm(G)
[Package edmcr version 0.2.0 Index]