edmc: Euclidean Distance Matrix Completion

Description Usage Arguments Details Value See Also Examples

View source: R/edmc.R

Description

edmc

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

edmcr documentation built on Sept. 10, 2021, 5:10 p.m.