edmc {edmcr}R Documentation

Euclidean Distance Matrix Completion

Description

edmc

Usage

edmc(D, method = "dpf", ...)

Arguments

D

An nxn partial-distance matrix to be completed, with unkown entries set to NA.

method

The algorithm to be used to complete the distance matrix D. One of sdp, npf, dpf, snl, or grs

...

The remaining input values required for the completion method specified in method. See details.

Details

Depending on the method called, a number of input values are possible.

Value

The return from edmc depends on the method used. The help pages for each individual method can be consulted for specific output.

See Also

sdp npf dpf snl grs

Examples

set.seed(1337)
D <- matrix(c(0,3,4,3,4,3,
             3,0,1,NA,5,NA,
             4,1,0,5,NA,5,
             3,NA,5,0,1,NA,
             4,5,NA,1,0,5,
             3,NA,5,NA,5,0),byrow=TRUE, nrow=6)
             
edmc(D,method = "dpf", d=3, toler=1e-8)


[Package edmcr version 0.2.0 Index]