Learn R Programming

netgen (version 1.3)

getOptimalPointMatching: Computes optimal point assignment for two sets of points of equal size.

Description

Internally it handles the points and the possible matchings as a bi-partite graphs and finds an optimal matching due to euclidean distance by an efficient linear programming solver.

Usage

getOptimalPointMatching(x, y, method = "lp")

Arguments

x

[Network | matrix] First network or matrix of coordinates of the first point set.

y

[Network | matrix] Second network or matrix of coordinates of the second point set.

method

[character(1)] Method used to solve the assignment problem. There are currently two methods available:

lp

Solves the problem be means of linear programming with the lpSolve package. This is the default.

push_relabel

The assignment problem can be formulated as a matching problem on bipartite graphs. This method makes use of the push-relabel algorithm from the igraph.

random

Random point matching.

Value

[matrix] Each row consists of the indizes of the pairwise matchings.

See Also

visualizePointMatching