找回密码
 注册
查看: 320|回复: 0

R语言 SpatialVx包 locperf()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 12:57:19 | 显示全部楼层 |阅读模式
locperf(SpatialVx)
locperf()所属R语言包:SpatialVx

                                         Localization performance measures
                                         定位性能的措施

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Some localization performance (distance) measures for binary images.
一些二值图像的定位性能(距离)的措施。


用法----------Usage----------


locperf(X, Y, which.stats = c("ph", "mhd", "med", "msd", "fom", "minsep"), alpha = 0.1, k = 4, distfun = "distmapfun", ...)
distob(X, Y, distfun = "distmapfun", ...)
distmapfun(x, ...)



参数----------Arguments----------

参数:X
list object giving a pixel image as output from solutionset from package spatstat.  This corresponds to the set B in the Details section below.  
列表对象,使像素作为从solutionset包spatstat的输出图像。这对应于在下面的详细信息“部分的集合B。


参数:Y
list object giving a pixel image as output from solutionset from package spatstat.  This corresponds to the set A in the Details section below.  
列表对象,使像素作为从solutionset包spatstat的输出图像。这对应于集合A在下面的“详细信息”部分。


参数:x
list object of class "owin" as returned by solutionset from package spatstat.
列表对象类“owin”返回solutionset包spatstat。


参数:which.stats
character vector stating which localization performance measure to calculate.  
字符矢量注明的定位性能指标计算。


参数:alpha
numeric giving the scaling constant for Pratt's figure of merit (FOM).  Only used for which.stat method "fom".  
数字普拉特的品质因数(FOM)的比例常数。仅用于which.stat方法“FOM”。


参数:k
single numeric giving the order for the partial Hausdorff distance.  If 0 <= k < 1, this is assumed to be a quantile for use with the quantile function.  Otherwise, k should be a whole number such that 1 <= k <= Nxy, where nxy is the total number of grid points in the set.  
单一的数字发出命令的部分Hausdorff距离。如果0 <= k <1的,这被假设为是一个用于与quantile函数的分位数。否则,k应是一个整数,例如,1 <= K <= NXY,其中NXY是集合中的网格点的总数。


参数:distfun
character specifying a distance metric that returns a matrix of same dimension as X yielding, at each point x, the shortest distances from x to the set of events in the field.  Default is distmapfun, which returns the Euclidean distances.
字符指定返回相同维数的矩阵作为X高产,在每个点x,从x到的最短距离,在该领域的事件集的距离度量。默认值是distmapfun,它返回的欧氏距离。


参数:...
Optional arguments to the distfun function.  In the case of distmapfun, these are the optional arguments to distmap from package spatstat.  
distfun功能的可选参数。在distmapfun的情况下,,这些都是从包装distmap到spatstat的可选参数。


Details

详细信息----------Details----------

This function computes localization performance (or distance) measures detailed in Peli and Malah (1982) and Baddeley (1992), as well as a modification of one of these distances detailed in Zhu et al. (2011); distob.
该函数计算定位性能(或距离)Peli和马拉(1982)和巴德利(1992),以及在诸等详述这些距离的变形例的一个详细的措施。 (2011年); distob。

First, it is helpful to establish some notation.  Suppose a distance rho(x,y) is defined between any two pixels x and y in the entire raster of pixels/grid (If distfun is distmapfun (default), then rho is the Euclidean distance) that satisfies the formal mathematical axioms of a metric.  Let d(x,A) denote the shortest distance (smallest value of rho) from the point x in the entire raster to the the set A contained in the raster.  That is, d(x,A) = min(rho(x,a): a in A contained in the raster) [formally, the minimum should be the infimum], with d(x, empty set) defined to be infinity.  Note that the distfun argument is a function that returns d(x,A) for all x in the raster.
首先,它是有帮助建立一些符号。假设一个距离rho沸石(的x,y)被定义之间的任何两个像素在整个光栅的像素/电网(如果distfun是distmapfun(默认),然后rho是欧几里德距离)的x和y满足一个正式的数学公理度量。令d(X,A)表示的最短距离(最小的值的rho沸石)在整个光栅中从点x的集合A包含在栅格中。也就是说,D(X,A)= MIN(卢(X,A):A在中所含的光栅)[正式,至少应是下确界],其中d(X,空集)定义为无穷大。请注意,distfun参数是一个函数,返回D(X,A)对所有x的光栅。

The mean error distance ("med") is the mean of d(x,A) over the points in B.  That is e.bar = mean( d(x,A)), over all x in B.
(“医学”)的平均误差距离是D(X,A)的平均值,这是e.bar =(D(X,A)),对所有x的B. B.在点

The mean square error distance ("msd") is the mean of the squared d(x,A) over the points in B.  That is, e2.bar = mean( d(x,A)^2), over all x in B.
均方误差的平均距离(“MSD)是(X,A)的平方&#240;多点,e2.bar =(D(X,A)^ 2),在所有x在B。

Pratt's figure of merit ("fom") is given by: FOM(A,B) = sum( 1/(1+alpha*d(x,A)^2))/max(N(A),N(B)), where x in B, and N(A) (N(B)) is the number of points in the set A (B) and alpha is a scaling constant (see, e.g., Pratt, 1977; Abdou and Pratt, 1979).  The scaling constant is typically set to 1/9 when rho is normalized so that the smallest nonzero distance between pixel neighbors is 1.  The default (0.1) here is approximately 1/9.
普拉特的品质因数(FOM):FOM(A,B)= SUM(1 /(1 +α* D(X,A)^ 2))/最大(N(A),N( B)),其中x,B,N(A)(N(B))是点的集合A(B)和α是一个比例常数(见,例如,1977年,普拉特;阿卜杜·普拉特,1979)。 rho沸石进行归时,使最小的非零像素邻居之间的距离是1,该比例常数,通常被设置为1/9。默认的(0.1)这里是约1/9。

Minimum separation distance between boundaries ("minsep") is just the smallest value of the distance map of one field over the subset where events occur in the other.  This is mainly for when single features within the fields are being compared.
边界(“minsep”)之间的最小间隔距离仅仅是一个场的子集的事件发生在其他的地方的距离的图的值最小。这主要是针对单一功能领域内进行比较。

distob is a modification of the mean error distance where if there are no events in either field, the value is 0, and if there are no events in one field only, the value is something large (in this case the length of the longest side of the grid).
distob是平均误差距离的变形例,如果有任一字段中没有事件,该值为0,如果只在一个场中没有事件,该值是大的(在此情况下的最长边的长度的网格)。

The Hausdorff distance for a finite grid is given by max( max( d(x,B); x in A), max( d(x,A); x in B)), and can be written as max( abs(d(x,A) - d(x,B)), over all x in the raster).  The partial Hausdorff distance ("ph") is a modification that replaces the maximum in the latter equation with a k-th order statistic (or quantile).  The modified Hausdorff distance ("mhd") is given by mhd(A,B) = max( e.bar(A,B), e.bar(B,A)).  See, e.g., Baddeley, 1992; Schwedler and Baldwin (2011).
对于一个有限的网格的Hausdorff距离由下式给出最大值(最大值(四(的x,B)等,x A)中,最大(d(下的x,A)中的x B)),并且可以写为最大(绝对( D(X,A) -  D(X,B)),通过在栅格中所有的x)。部分Hausdorff距离(“ph值”)是取代的最大的变形例,与第k个顺序统计量(或位数)在后者的方程。改进的Hausdorff距离(MHD)给出了MHD(A,B)= MAX(e.bar(A,B),e.bar(B,A))。见例如,巴德利,1992年施威德勒和Baldwin(2011)。

For computational efficiency, the distance transform method is used via distmap from package spatstat for calculating d(x,A) x in the raster.
计算效率,距离变换方法是通过使用distmap包spatstat计算D(X,A)中的光栅。


值----------Value----------

locperf returns a list object with components depending on which.stats: one or more of the following, each of which is a single numeric.
locperf返回一个列表对象的组件根据which.stats:一个或多个以下,这是一个单一的数字。


参数:ph
numeric giving the value of the partial  
数值赋予值的部分


参数:comp2
Description of 'comp2'
说明COMP2“

distob returns a single numeric.
distob返回一个单一的数字。

distmapfun returns a matrix of same dimension as the input argument's field.
distmapfun返回相同尺寸的矩阵作为输入参数的领域。


(作者)----------Author(s)----------



Eric Gilleland




参考文献----------References----------








参见----------See Also----------

distmap, solutionset, im, bounding.box, as.rectangle, metrV, locmeasures2d, locmeasures2dPrep
distmap,solutionset,im,bounding.box,as.rectangle,metrV,locmeasures2d,locmeasures2dPrep


实例----------Examples----------


x <- y <- matrix( 0, 10, 12)
x[2,3] <- 1
y[4,7] <- 1
x <- im( x)
y <- im( y)
x <- solutionset( x > 0)
y <- solutionset( y > 0)
locperf( x, y)
par( mfrow=c(1,2))
image.plot( distmapfun(x))
image.plot( distmapfun(y))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-10 13:11 , Processed in 0.022755 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表