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

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

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

                                        Nearest neighbour distances between line segments
                                         最近的邻居之间的距离线段

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

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

Computes the distance from each line segment  to its nearest neighbour in a line segment pattern. Alternatively finds the distance to the second nearest, third nearest etc.
计算从每个线段的距离其近邻的线段图案。或者找到的距离的第二最近的,第三最近等


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


  ## S3 method for class 'psp'
nndist(X, ..., k=1, method="Fortran")



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

参数:X
A line segment pattern (object of class "psp").  
一个线段模式(类的对象"psp")。


参数:...
Ignored.  
忽略。


参数:k
Integer, or integer vector. The algorithm will compute the distance to the kth nearest neighbour.   
整数或整数向量。该算法计算距离的的k日最近的邻居。


参数:method
String specifying which method of calculation to use. Values are "Fortran" and "interpreted". Usually not specified.  
字符串,用于指定使用的计算方法。值是"Fortran"和"interpreted"。通常没有指定。


Details

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

This is a method for the generic function nndist for the class "psp".
这是一种通用功能nndist类"psp"。

If k=1, this function computes the distance from each line segment  to the nearest other line segment in X. In general it computes the distance from each line segment to the kth nearest other line segment. The argument k can also be a vector, and this computation will be performed for each value of k.
如果k=1,这个函数计算从每个线段的距离最近的另一条线段的X。一般来说,计算每个线段k日最近的其他线段的距离。参数k也可以是一个矢量,计算将要执行的每个值的k。

Distances are calculated using the Hausdorff metric. The Hausdorff distance between two line segments is the maximum distance from any point on one of the segments to the nearest point on the other segment.   
距离指的是使用Hausdorff度量。两条线段之间的Hausdorff距离是从其中一个段上的任何一点上的最近点的其他段的最大距离。

If there are fewer than max(k)+1 line segments in the pattern, some of the nearest neighbour distances will be infinite (Inf).
如果有不到max(k)+1的线段的格局,一些最近的邻居的距离将是无限的(Inf)。

The argument method is not normally used. It is retained only for checking the validity of the software. If method = "interpreted" then the distances are computed using interpreted R code only. If method="Fortran" (the default) then Fortran code is used. The Fortran code is somewhat faster.
参数method不能正常使用。它只会保留检查的软件的有效性。如果method = "interpreted"的距离计算仅使用解释R代码。如果method="Fortran"(默认值),然后使用Fortran代码。的Fortran代码稍快。


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

Numeric vector or matrix containing the  nearest neighbour distances for each line segment.
包含近邻的每个线段的距离的数值向量或矩阵。

If k = 1 (the default), the return value is a numeric vector v such that v[i] is the nearest neighbour distance for the ith segment.
如果k = 1(默认值),则返回值是一个数值向量v这样v[i]的i个数据段的距离是最近的邻居。

If k is a single integer, then the return value is a numeric vector v such that v[i] is the kth nearest neighbour distance for the ith segment.
如果k是一个整数,则返回值是一个数值向量v等v[i]是k日的最近邻距离i日段。

If k is a vector, then the return value is a matrix m such that m[i,j] is the k[j]th nearest neighbour distance for the ith segment.
如果k是一个向量,则返回值是一个矩阵m等m[i,j]是k[j]日最近的邻居的i个数据段的距离。


(作者)----------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----------

nndist, nndist.ppp
nndist,nndist.ppp


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


   L <- psp(runif(10), runif(10), runif(10), runif(10), owin())
   D <- nndist(L)
   D <- nndist(L, k=1:3)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-15 23:06 , Processed in 0.021291 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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