psd2edm: Linear Matrix Operator

Description Usage Arguments Details Value See Also Examples

View source: R/MatrixOperators.R

Description

psd2edm Transform a positive semi-definite matrix to a Euclidean Distance Matrix

Usage

1
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 S_{n-1}^{+} and transforming it to a matrix in D_{n}^{-}.

psd2edm(S_{n-1}^{+}) = D_{n}^{-}

Therefore, psd2edm on S_{n-1}^{+} is the inverse operator of edm2psd on D_{n}^{-}.

For a symmetric positive semi-definite matrix S, psd2edm(S) will be in D_{n}^{-}.

Value

D A Euclidean Distance Matrix.

See Also

gram2edm edm2psd

Examples

1
2
3
XY <- cbind(runif(100,0,1),runif(100,0,1))
S <- edm2psd(as.matrix(dist(XY)))
D <- psd2edm(S)

Datasmith documentation built on May 29, 2017, 10:19 p.m.

Related to psd2edm in Datasmith...