LinearAssignment(GraphAlignment)
LinearAssignment()所属R语言包:GraphAlignment
Solve linear assignment problem
求解线性分配问题
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Solve the linear assignment problem specified by the cost matrix.
求解线性成本矩阵指定的分配问题。
用法----------Usage----------
LinearAssignment(matrix)
参数----------Arguments----------
参数:matrix
cost matrix
成本矩阵
Details
详情----------Details----------
This function solves the linear assignment problem defined by the input matrix. [Jonker, Volgenant 1987]
此功能解决了输入矩阵定义的线性分配问题。 [琼克,Volgenant 1987]
值----------Value----------
The return value is a permutation vector equal to the solution of the linear assignment problem specified by the cost matrix. The result is the permutation P for which MP is minimal (where M is the cost matrix).
返回值是一个置换向量等于成本矩阵中指定的线性分配问题的解决。其结果是置换P,MP是最小的(其中M是成本矩阵)。
作者(S)----------Author(s)----------
Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and Johannes Berg
参考文献----------References----------
举例----------Examples----------
m <- matrix(rnorm(25), 5, 5)
px <- LinearAssignment(round(-1000 * (m / max(abs(m)))))
m[px,]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|