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

R语言 spatstat包 distmap.ppp()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:24:21 | 显示全部楼层 |阅读模式
distmap.ppp(spatstat)
distmap.ppp()所属R语言包:spatstat

                                         Distance Map of Point Pattern
                                         距离图的点模式

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

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

Computes the distance from each pixel to the nearest point in the given point pattern.
计算从每个像素的距离,以在给定的点图案的最近点。


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


  ## S3 method for class 'ppp'
distmap(X, ...)



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

参数:X
A point pattern (object of class "ppp").  
点模式(类的对象"ppp")。


参数:...
Arguments passed to as.mask to control pixel resolution.  
参数传递给as.mask控制像素的分辨率。


Details

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

The “distance map” of a point pattern X is the function f whose value f(u) is defined for any two-dimensional location u as the shortest distance from u to X.
“距离图”的点模式X是功能f的价值f(u)被定义为任何二维位置u的最短距离uX。

This function computes the distance map of the point pattern X and returns the distance map as a pixel image. The greyscale value at a pixel u equals the distance from u to the nearest point of the pattern X.
此函数计算的距离图的点模式X返回的距离映射为一个像素的图像。的灰度值像素u模式u的最近点的距离等于从X。

Additionally, the return value  has two attributes, "index" and "bdry", which are also pixel images. The grey values in "bdry" give the distance from each pixel to the bounding rectangle of the image. The grey values in "index" are integers identifying which point of X is closest.
此外,返回值有两个属性,"index"和"bdry",这也是像素的图像。的灰度值"bdry"给的边界矩形的图像每个像素的距离。 "index"的灰度值是确定哪个角度X最接近的整数。

This is a method for the generic function distmap.
这是一个方法的通用函数distmap。

Note that this function gives the distance from the centre of each pixel to the nearest data point. To compute the exact distance from a given spatial location to the nearest data point in X, use distfun or  nncross.
请注意,该函数给出了从每个像素的中心到最近的数据点的距离。要计算的精确距离最近的数据点X从一个给定的空间位置,使用distfun或nncross。


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

A pixel image (object of class "im") whose greyscale values are the values of the distance map. The return value has attributes "index" and "bdry" which are also pixel images.
像素的图像(类的对象"im"),其灰度值是距离映射的值。返回值的属性"index"和"bdry"像素的图像。


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


Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>




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

Generic function distmap and other methods distmap.psp, distmap.owin.
通用功能distmap和其他方法distmap.psp,distmap.owin。

Generic function distfun.
通用功能distfun。

Nearest neighbour distance nncross
最近的邻居距离nncross


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


  data(cells)
  U <- distmap(cells)
  ## Not run: [#不运行:]
  plot(U)
  plot(attr(U, "bdry"))
  plot(attr(U, "index"))
  
## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-13 18:21 , Processed in 0.022682 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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