dpf: Dissimilarity Parameterization Formulation

Description Usage Arguments Details Value References Examples

View source: R/dpf.R

Description

dpf returns a completed Euclidean Distance Matrix D, with dimension d, from a partial Euclidean Distance Matrix using the methods of Trosset (2000)

Usage

1
dpf(D, d, toler = 1e-08, lower = NULL, upper = NULL, retainMST = FALSE)

Arguments

D

An nxn partial-distance matrix to be completed. D must satisfy a list of conditions (see details), with unkown entries set to NA

d

The dimension for the resulting completion.

toler

The convergence tolerance of the algorithm. Set to a default value of 1e-8

lower

An nxn matrix containing the lower bounds for the unknown entries in D. If NULL, lower is set to be a matrix of 0s.

upper

An nxn matrix containing the upper bounds of the unknown entries in D. If NULL, upper[i,j] is set to be the shortest path between node i and node j.

retainMST

D logical input indicating if the current minimum spanning tree structure in D should be retained. If TRUE, a judicious choice of Lower is calculated internally such that the MST is retained.

Details

This is an implementation of the Dissimilarity Parameterization Formulation (DPF) for Euclidean Distance Matrix Completion, as proposed in 'Distance Matrix Completion by Numerical Optimization' (Trosset, 2000).

The method seeks to minimize the following:

∑_{i=1}^{d}(λ_{i} - λ_{max}) + ∑_{i=d+1}^{n}λ_{i}^{2}

where λ_{i} are the ordered eigenvalues of τ(Δ). For details, see Trosset(2000)

The matrix D is a partial-distance matrix, meaning some of its entries are unknown. It must satisfy the following conditions in order to be completed:

Value

D

The completed distance matrix with dimensionality d

optval

The minimum function value achieved during minimization (see details)

References

Trosset, M.W. (2000). Distance Matrix Completion by Numerical Optimization.Computational Optimization and Applications, 17, 11<e2><80><93>22, 2000.

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. 21, 2017, 5:03 p.m.