Description Usage Arguments Details Value Examples
Hungarian algorithm for matching samples in a bipartite graph from a distance ("cost") matrix
1 | bipartiteMatch(costMatrix)
|
costMatrix |
A distance matrix giving the cost of each possible pairing |
This algorithm was cloned from RcppHungarian, an Rcpp wrapper for the original C implementation by Cong Ma (2016).
n x 2 matrix of pairings
List of components "cost" and "parings", with pairings given as an n x 2 matrix
1 2 3 4 5 | costMatrix <- rbind(c(1, 2, 0),
c(2, 0, 1),
c(1, 4, 19))
matched <- bipartiteMatch(costMatrix)
matched
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.