crossdist.ppp(spatstat)
crossdist.ppp()所属R语言包:spatstat
Pairwise distances between two different point patterns
两个不同的两两之间的距离的点图案的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the distances between pairs of points taken from two different point patterns.
计算对取自两个不同的点图案的点之间的距离。
用法----------Usage----------
## S3 method for class 'ppp'
crossdist(X, Y, ..., periodic=FALSE, method="C")
参数----------Arguments----------
参数:X,Y
Point patterns (objects of class "ppp").
点模式(对象类"ppp")。
参数:...
Ignored.
忽略。
参数:periodic
Logical. Specifies whether to apply a periodic edge correction.
逻辑。指定是否申请一个周期的边缘校正。
参数:method
String specifying which method of calculation to use. Values are "C" and "interpreted".
字符串,用于指定使用的计算方法。值是"C"和"interpreted"。
Details
详细信息----------Details----------
Given two point patterns, this function computes the Euclidean distance from each point in the first pattern to each point in the second pattern, and returns a matrix containing these distances.
鉴于两个点图案,此函数计算的欧几里得距离从第一图案中的每个点,在第二图案中的每一个点,并返回一个矩阵包含这些距离。
This is a method for the generic function crossdist for point patterns (objects of class "ppp").
这是一个方法的通用函数crossdist点模式(类的对象"ppp")。
This function expects two point patterns X and Y, and returns the matrix whose [i,j] entry is the distance from X[i] to Y[j].
此功能要求两个点模式X和Y,并返回矩阵的[i,j]项的距离X[i]到Y[j]。
Alternatively if periodic=TRUE, then provided the windows containing X and Y are identical and are rectangular, then the distances will be computed in the "periodic" sense (also known as "torus" distance): opposite edges of the rectangle are regarded as equivalent. This is meaningless if the window is not a rectangle.
或者,如果periodic=TRUE,然后提供的窗口含有X和Y的是相同的,是矩形的,那么距离将被计算在定期感(也被称为圆环距离):的矩形的相对边缘被认为等同。这是无意义的,如果该窗口不在一个矩形。
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="C" (the default) then C code is used. The C code is faster by a factor of 4.
参数method不能正常使用。它只会保留检查的软件的有效性。如果method = "interpreted"的距离计算仅使用解释R代码。如果method="C"(默认值),那么C代码使用。的C代码是由一个因子4更快。
值----------Value----------
A matrix whose [i,j] entry is the distance from the i-th point in X to the j-th point in Y.
矩阵的的个点[i,j] i个点X jY项的距离。
(作者)----------Author(s)----------
Pavel Grabarnik
<a href="mailto:pavel.grabar@issp.serpukhov.su">pavel.grabar@issp.serpukhov.su</a>
and
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>
参见----------See Also----------
crossdist, crossdist.default, crossdist.psp, pairdist, nndist, Gest
crossdist,crossdist.default,crossdist.psp,pairdist,nndist,Gest
实例----------Examples----------
data(cells)
d <- crossdist(cells, runifpoint(6))
d <- crossdist(cells, runifpoint(6), periodic=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|