crossdist.ppx(spatstat)
crossdist.ppx()所属R语言包:spatstat
Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
两两之间的距离两种不同的多维点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the distances between pairs of points taken from two different multi-dimensional point patterns.
计算从两个不同的多维点图案点对之间的距离。
用法----------Usage----------
## S3 method for class 'ppx'
crossdist(X, Y, ...)
参数----------Arguments----------
参数:X,Y
Multi-dimensional point patterns (objects of class "ppx").
多维点模式(对象类"ppx")。
参数:...
Arguments passed to coords.ppx to determine which coordinates should be used.
参数传递给coords.ppx,以确定应该使用的坐标。
Details
详细信息----------Details----------
Given two point patterns in multi-dimensional space, 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 three-dimensional point patterns (objects of class "ppx").
这是一个方法的通用函数crossdist三维点模式(类的对象"ppx"“)。
This function expects two multidimensional 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],。
By default, both spatial and temporal coordinates are extracted. To obtain the spatial distance between points in a space-time point pattern, set temporal=FALSE.
默认情况下,空间和时间坐标中提取。为了获得点之间的空间距离,空间的时间点模式,设置temporal=FALSE。
值----------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)----------
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, pairdist, nndist
crossdist,pairdist,nndist
实例----------Examples----------
df <- data.frame(x=runif(3),y=runif(3),z=runif(3),w=runif(3))
X <- ppx(data=df)
df <- data.frame(x=runif(5),y=runif(5),z=runif(5),w=runif(5))
Y <- ppx(data=df)
d <- crossdist(X, Y)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|