spokes(spatstat)
spokes()所属R语言包:spatstat
Spokes pattern of dummy points
辐条模式的虚拟点
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates a pattern of dummy points in a window, given a data point pattern. The dummy points lie on the radii of circles emanating from each data point.
生成哑点的图案,在一个窗口中,给定的一个数据点图案。虚设的点位于上来自每个数据点的圆的半径。
用法----------Usage----------
spokes(x, y, nrad = 3, nper = 3, fctr = 1.5, Mdefault = 1)
参数----------Arguments----------
参数:x
Vector of x coordinates of data points, or a list with components x and y, or a point pattern (an object of class ppp).
向量的x坐标数据点,或列表的组件x和y,或点模式(类的一个对象ppp)。
参数:y
Vector of y coordinates of data points. Ignored unless x is a vector.
向量的y的数据点的坐标。被忽略,除非x是一个向量。
参数:nrad
Number of radii emanating from each data point.
来自每个数据点的半径数目。
参数:nper
Number of dummy points per radius.
每个半径的虚拟号码。
参数:fctr
Scale factor. Length of largest spoke radius is fctr * M where M is the mean nearest neighbour distance for the data points.
比例因子。的最大长度谈到半径是fctr * MM的数据点的平均距离最近的邻居。
参数:Mdefault
Value of M to be used if x has length 1.
M的值时,将使用x的长度为1。
Details
详细信息----------Details----------
This function is useful in creating dummy points for quadrature schemes (see quadscheme).
此功能是非常有用,在创建虚拟点积分计划(见quadscheme的)。
Given the data points, the function creates a collection of nrad * nper * length(x) dummy points.
由于数据点,函数创建nrad * nper * length(x)假的点的集合。
Around each data point (x[i],y[i]) there are nrad * nper dummy points, lying on nrad radii emanating from (x[i],y[i]), with nper dummy points equally spaced along each radius.
每个数据点周围(x[i],y[i])有nrad * nper哑点,趴在nrad半径产生的(x[i],y[i]),nper假的每一个半径沿等距点。
The (equal) spacing of dummy points along each radius is controlled by the factor fctr. The distance from a data point to the furthest of its associated dummy points is fctr * M where M is the mean nearest neighbour distance for the data points.
虚设点沿每个半径的(相等的)间距控制的因素fctr。从数据点到其关联哑点最远的距离是fctr * MM的数据点的平均距离最近的邻居。
If there is only one data point the nearest neighbour distance is infinite, so the value Mdefault will be used in place of M.
如果只有一个数据点近邻距离是无限的,因此该值Mdefault将被用于代替M。
If x is a point pattern, then the value returned is also a point pattern, which is clipped to the window of x. Hence there may be fewer than nrad * nper * length(x) dummy points in the pattern returned.
如果x是一个点模式,然后返回的值是一个点的模式,这是裁剪的窗口x。因此,可能会减少,比nrad * nper * length(x)假的点传回的格局。
值----------Value----------
If argument x is a point pattern, a point pattern with window equal to that of x. Otherwise a list with two components x and y. In either case the components x and y of the value are numeric vectors giving the coordinates of the dummy points.
如果的参数x是一个点图案,点图案与窗口的x。否则,列表用两个组件x和y。在这两种情况下的组件x和y的值是数值向量给虚设点的坐标。
(作者)----------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----------
quad.object, quadscheme, inside.owin, gridcentres, stratrand
quad.object,quadscheme,inside.owin,gridcentres,stratrand
实例----------Examples----------
dat <- runifrect(10)
## Not run: [#不运行:]
plot(dat)
## End(Not run)[#(不执行)]
dum <- spokes(dat$x, dat$y)
## Not run: [#不运行:]
points(dum$x, dum$y, pch=".")
## End(Not run)[#(不执行)]
Q <- quadscheme(dat, dum)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|