pppmatching.object(spatstat)
pppmatching.object()所属R语言包:spatstat
Class of Point Matchings
一类点匹配问题
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A class "pppmatching" to represent a matching of two planar point patterns. Optionally includes information about the construction of the matching and its associated distance between the point patterns.
A类"pppmatching"代表的两个平面的点模式匹配的。可以包括信息的匹配性和其相关联的点之间的距离模式建设。
Details
详细信息----------Details----------
This class represents a (possibly weighted and incomplete) matching between two planar point patterns (objects of class "ppp").
这个类表示(可能是加权和不完整的)之间的匹配2平面点模式(类的对象"ppp"“)。
A matching can be thought of as a bipartite weighted graph where the vertices are given by the two point patterns and edges of positive weights are drawn each time a point of the first point pattern is "matched" with a point of the second point pattern.
甲匹配可以被认为是其中由下式给出的两个点模式和正权重的边缘的顶点为二分加权图绘制每个时间点的第一点图案是“匹配”的一个点的第二点图案。
If m is an object of type pppmatching, it contains the following elements
如果m是一个类型pppmatching的对象,它包含以下元素
The element matrix is a "generalized adjacency matrix". The numbers of rows and columns match the cardinalities of the first and second point patterns, respectively. The [i,j]-th entry is positive if the i-th point of X and the j-th point of Y are matched (zero otherwise) and its value then gives the corresponding weight of the match. For an unweighted matching all the weights are set to 1.
元素matrix是一种“广义的邻接矩阵”。的行和列的数目相匹配的第一和第二点图案的基数,分别。 [i,j]个项目是正面的,如果i个X和个点的j Y相匹配,否则为零的点和它的价值,然后给出相应的权重的比赛。对于非加权匹配所有的权重设置为1。
The optional elements are for saving details about matchings in the context of optimal point matching techniques. type can be one of "spa" (for "subpattern assignment"), "ace" (for "assignment only if cardinalities differ") or "mat" (for "mass transfer"). cutoff is a positive numerical value that specifies the maximal interpoint distance and q is a value in [1,Inf] that gives the order of the average applied to the interpoint distances. See the help files for pppdist and matchingdist for detailed information about these elements.
可选的元素是用于保存在最佳点匹配技术的上下文中的详细信息的匹配。 type可以是一个“大规模的"spa"(”子模式分配“),"ace"(”只有分配基数不同“)或"mat"(转让“)。 cutoff是一个积极的数值,指定最大的INTERPOINT距离和q是一个值[1,Inf]的一声令下的平均适用于INTERPOINT距离。 pppdist和matchingdist有关这些元素的详细信息,请参阅帮助文件。
Objects of class "pppmatching" may be created by the function pppmatching, and are most commonly obtained as output of the function pppdist. There are methods plot, print and summary for this class.
对象的类"pppmatching"可以由函数pppmatching创建,并且是最常见的获得作为输出的函数pppdist。有一些方法plot,print和summary这个类。
(作者)----------Author(s)----------
Dominic Schuhmacher
<a href="mailto:dominic.schuhmacher@stat.unibe.ch">dominic.schuhmacher@stat.unibe.ch</a>
<a href="http://www.dominic.schuhmacher.name">http://www.dominic.schuhmacher.name</a>
参见----------See Also----------
matchingdist pppmatching
matchingdistpppmatching
实例----------Examples----------
# a random complete unweighted matching[一个随机的完整的未加权匹配]
X <- runifpoint(10)
Y <- runifpoint(10)
am <- r2dtable(1, rep(1,10), rep(1,10))[[1]]
# generates a random permutation matrix[产生一个随机置换矩阵]
m <- pppmatching(X, Y, am)
summary(m)
m$matrix
## Not run: [#不运行:]
plot(m)
## End(Not run)[#(不执行)]
# an optimal complete unweighted matching[一个最佳的完整的未加权匹配]
m2 <- pppdist(X,Y)
summary(m2)
m2$matrix
## Not run: [#不运行:]
plot(m2)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|