pairdist.ppx(spatstat)
pairdist.ppx()所属R语言包:spatstat
Pairwise Distances in Any Dimensions
在任何尺寸的成对距离
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the matrix of distances between all pairs of points in a multi-dimensional point pattern.
计算所有对在一个多维的点图案的点之间的距离的矩阵。
用法----------Usage----------
## S3 method for class 'ppx'
pairdist(X, ...)
参数----------Arguments----------
参数:X
A point pattern (object of class "ppx").
点模式(类的对象"ppx")。
参数:...
Arguments passed to coords.ppx to determine which coordinates should be used.
参数传递给coords.ppx,以确定应该使用的坐标。
Details
详细信息----------Details----------
This is a method for the generic function pairdist.
这是一个方法的通用函数pairdist。
Given a multi-dimensional point pattern X (an object of class "ppx"), this function computes the Euclidean distances between all pairs of points in X, and returns the matrix of distances.
一个多维点模式X(一个类的对象"ppx"),这个函数计算所有点对之间的欧氏距离在X,并返回的距离矩阵。
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 square matrix whose [i,j] entry is the distance between the points numbered i and j.
一方阵的[i,j]项是点之间的距离编号i和j。
(作者)----------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----------
pairdist, crossdist, nndist
pairdist,crossdist,nndist
实例----------Examples----------
df <- data.frame(x=runif(4),y=runif(4),z=runif(4),w=runif(4))
X <- ppx(data=df)
pairdist(X)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|