Computes optimal point assignment for two sets of points of equal size.
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.
getOptimalPointMatching(x, y, method = "lp", full.output = FALSE)
x |
[ |
y |
[ |
method |
[
|
full.output |
[ |
[matrix | list
]
Either a matrix where each row consists of the indizes of the pairwise
assigned points.
If full.output = TRUE
a list is returned with the assignment matrix “pm”,
the method “method” and the optimal weight “opt.weight”.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.