rjitter(spatstat)
rjitter()所属R语言包:spatstat
Random Perturbation of a Point Pattern
随机扰动的点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies independent random displacements to each point in a point pattern.
适用于独立的随机位移中的每个点一个点模式。
用法----------Usage----------
rjitter(X, radius, retry=TRUE, giveup = 10000)
参数----------Arguments----------
参数:X
A point pattern (object of class "ppp").
点模式(类的对象"ppp")。
参数:radius
Scale of perturbations. A positive numerical value. The displacement vectors will be uniformly distributed in a circle of this radius.
规模的扰动。一个积极的数值。的位移矢量将被均匀地分布在该半径的圆。
参数:retry
What to do when a perturbed point lies outside the window of the original point pattern. If retry=FALSE, the point will be lost; if retry=TRUE, the algorithm will try again.
怎么办时,扰动点在于窗外的原点模式。如果retry=FALSE,点会丢失,如果retry=TRUE,该算法将再次尝试。
参数:giveup
Maximum number of unsuccessful attempts.
最大失败次数。
Details
详细信息----------Details----------
Each of the points in the point pattern X is subjected to an independent random displacement. The displacement vectors are uniformly distributed in a circle of radius radius.
点模式X中的每一个点的是一个独立的随机位移。的位移矢量被均匀地分布在一个圆的半径radius。
If a displaced point lies outside the window, then if retry=FALSE the point will be lost.
如果一个流离失所点在于窗外,然后如果retry=FALSE的点都将丢失。
However if retry=TRUE, the algorithm will try again: each time a perturbed point lies outside the window, the algorithm will reject it and generate another proposed perturbation of the original point, until one lies inside the window, or until giveup unsuccessful attempts have been made. In the latter case, any unresolved points will be included without any perturbation. The return value will always be a point pattern with the same number of points as X.
但是如果retry=TRUE,该算法将再次尝试:每次扰动点在于窗外,该算法将拒绝它,并产生另议扰动的原始点,直到其中一个位于窗口内,或直到giveup不成功的尝试。在后者的情况下,任何未解决的点将会包括没有任何扰动。返回值将始终是一个点的模式相同数量的点X。
值----------Value----------
A point pattern (object of class "ppp") in the same window as X.
点模式(对象类"ppp")在同一窗口中的X。
(作者)----------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>
实例----------Examples----------
X <- rsyst(owin(), 10, 10)
Y <- rjitter(X, 0.02)
plot(Y)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|