localpcf(spatstat)
localpcf()所属R语言包:spatstat
Local pair correlation function
本地对相关功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes individual contributions to the pair correlation function from each data point.
计算个人的贡献,对相关函数从每个数据点。
用法----------Usage----------
localpcf(X, ..., delta=NULL, rmax=NULL, nr=512, stoyan=0.15)
localpcfinhom(X, ..., delta=NULL, rmax=NULL, nr=512, stoyan=0.15,
lambda=NULL, sigma=NULL, varcov=NULL)
参数----------Arguments----------
参数:X
A point pattern (object of class "ppp").
点模式(类的对象"ppp")。
参数:delta
Smoothing bandwidth for pair correlation. The halfwidth of the Epanechnikov kernel.
对相关性的平滑带宽。半宽的叶帕涅奇尼科夫内核。
参数:rmax
Optional. Maximum value of distance r for which pair correlation values g(r) should be computed.
可选。距离的最大值r对相关值g(r)应该被计算。
参数:nr
Optional. Number of values of distance r for which pair correlation g(r) should be computed.
可选。号码的距离r的对相关g(r)的应计算值。
参数:stoyan
Optional. The value of the constant c in Stoyan's rule of thumb for selecting the smoothing bandwidth delta.
可选。的价值不断c斯托扬的经验法则选择平滑的带宽delta的。
参数:lambda
Optional. Values of the estimated intensity function, for the inhomogeneous pair correlation. Either a vector giving the intensity values at the points of the pattern X, a pixel image (object of class "im") giving the intensity values at all locations, a fitted point process model (object of class "ppm") or a function(x,y) which can be evaluated to give the intensity value at any location.
可选。值的估计强度功能,对相关不均匀。无论是矢量发出的格局X,一个像素的图像(类的对象"im")发出的强度值在所有地点,一个安装点过程模型(对象类的点的亮度值在"ppm")或function(x,y)可以进行评估,以在任何位置的强度值。
参数:sigma,varcov,...
These arguments are ignored by localpcf but are passed by localpcfinhom (when lambda=NULL) to the function density.ppp to control the kernel smoothing estimation of lambda.
的localpcf但通过这些参数将被忽略localpcfinhom(时lambda=NULL)的功能density.ppp控制的核估计的lambda。
Details
详细信息----------Details----------
localpcf computes the contribution, from each individual data point in a point pattern X, to the empirical pair correlation function of X. These contributions are sometimes known as LISA (local indicator of spatial association) functions based on pair correlation.
localpcf计算的贡献,从各个数据点在点模式X,经验对相关功能的X。这些捐款有时也被称为LISA(局部空间关联指标)功能的基础上对相关的。
localpcfinhom computes the corresponding contribution to the inhomogeneous empirical pair correlation function of X.
localpcfinhom计算不均匀的经验对相关功能的X相应的贡献。
Given a spatial point pattern X, the local pcf g[i](r) associated with the ith point in X is computed by
给定一个空间点格局X,当地PCF g[i](r)与i个点X的计算方法
where the sum is over all points j != i, a is the area of the observation window, n is the number of points in X, and d[i,j] is the distance between points i and j. Here k is the Epanechnikov kernel,
Edge correction is performed using the border method (for the sake of computational efficiency): the estimate g[i](r) is set to NA if r > b[i], where b[i] is the distance from point i to the boundary of the observation window.
的边缘校正是使用边界的方法(为了计算效率):估计g[i](r)设置为NA如果r > b[i],其中b[i]点的距离i观察窗口的边界。
The smoothing bandwidth delta may be specified. If not, it is chosen by Stoyan's rule of thumb delta = c/lambda where lambda = n/a is the estimated intensity and c is a constant, usually taken to be 0.15. The value of c is controlled by the argument stoyan.
平滑带宽delta可以指定。如果不是,它选择的斯托扬的经验法则delta = c/lambda其中lambda = n/a的估计强度和c是一个常数,通常取为0.15。控制参数cstoyan。
For localpcfinhom, the optional argument lambda specifies the values of the estimated intensity function. If lambda is given, it should be either a numeric vector giving the intensity values at the points of the pattern X, a pixel image (object of class "im") giving the intensity values at all locations, a fitted point process model (object of class "ppm") or a function(x,y) which can be evaluated to give the intensity value at any location. If lambda is not given, then it will be estimated using a leave-one-out kernel density smoother as described in pcfinhom.
localpcfinhom,可选参数lambda指定的值的估计强度功能。如果lambda是,它应是一个数值向量给出的图案的点处的强度值X,一个像素的图像(对象的类"im")发出的强度值所有的位置,一个厨房点过程模型(类的对象"ppm")或function(x,y),可以进行评估,以在任何位置的强度值。如果lambda不给,然后将估计一留一出核密度光滑的,因为在pcfinhom。
值----------Value----------
An object of class "fv", see fv.object, which can be plotted directly using plot.fv. Essentially a data frame containing columns
类的一个对象"fv",fv.object,它可以绘制直接使用plot.fv的。本质上是一个数据框包含多个列
参数:r
the vector of values of the argument r at which the function K has been estimated
的参数的值的矢量r在哪些函数K已估计
参数:theo
the theoretical value K(r) = pi * r^2 or L(r)=r for a stationary Poisson process
K(r) = pi * r^2或L(r)=r的平稳泊松过程的理论值
together with columns containing the values of the local pair correlation function for each point in the pattern. Column i corresponds to the ith point. The last two columns contain the r and theo values.
一起列中包含的本地对相关函数的值的模式中的每一个点。列i对应的i个点。最后两列包含r和theo值。
(作者)----------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----------
localK, localKinhom, pcf, pcfinhom
localK,localKinhom,pcf,pcfinhom
实例----------Examples----------
data(ponderosa)
X <- ponderosa
g <- localpcf(X, stoyan=0.5)
colo <- c(rep("grey", npoints(X)), "blue")
a <- plot(g, main=c("local pair correlation functions", "Ponderosa pines"),
legend=FALSE, col=colo, lty=1)
# plot only the local pair correlation function for point number 7[图只有当地对相关功能点7号]
plot(g, est007 ~ r)
gi <- localpcfinhom(X, stoyan=0.5)
a <- plot(gi, main=c("inhomogeneous local pair correlation functions",
"Ponderosa pines"),
legend=FALSE, col=colo, lty=1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|