edmc {edmcr} | R Documentation |
edmc
edmc(D, method = "dpf", ...)
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 |
Depending on the method called, a number of input values are possible.
The return from edmc
depends on the method used. The help pages for each individual method
can be consulted for specific output.
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)