shift.psp(spatstat)
shift.psp()所属R语言包:spatstat
Apply Vector Translation To Line Segment Pattern
应用矢量平移线段模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies a vector shift to a line segment pattern.
应用一个矢量线段模式的转变。
用法----------Usage----------
## S3 method for class 'psp'
shift(X, vec=c(0,0), ..., origin=NULL)
参数----------Arguments----------
参数:X
Line Segment pattern (object of class "psp").
线段模式(类的对象"psp")。
参数:vec
Vector of length 2 representing a translation.
矢量长度为2翻译。
参数:...
Ignored
忽视
参数:origin
Character string determining a location that will be shifted to the origin. Options are "centroid", "midpoint" and "bottomleft". Partially matched.
字符串判定的位置,将被转移到原点。选项"centroid","midpoint"和"bottomleft"。部分匹配。
Details
详细信息----------Details----------
The line segment pattern, and its window, are translated by the vector vec.
线段图案,和它的窗口,则按由矢量vec。
This is a method for the generic function shift.
这是一个方法的通用函数shift。
If origin is given, then it should be one of the character strings "centroid", "midpoint" or "bottomleft". The argument vec will be ignored; instead the shift will be performed so that the specified geometric location is shifted to the origin. If origin="centroid" then the centroid of the window will be shifted to the origin. If origin="midpoint" then the centre of the bounding rectangle of the window will be shifted to the origin. If origin="bottomleft" then the bottom left corner of the bounding rectangle of the window will be shifted to the origin.
origin如果是给定的,那么它应该是一个字符串的"centroid","midpoint"或"bottomleft"。 vec的参数将被忽略,而不是将执行移位,转移到指定的几何位置的起源。如果origin="centroid"然后在窗口的质心将被转移到原点的。如果origin="midpoint"窗口的边界矩形的中心将转移到原点的。如果origin="bottomleft"然后在左下角的窗口的边框将被转移到原点的。
值----------Value----------
Another line segment pattern (of class "psp") representing the result of applying the vector shift.
另一个线段的模式(类"psp")应用矢量移位的结果。
(作者)----------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----------
shift, shift.owin, shift.ppp, periodify, rotate, affine
shift,shift.owin,shift.ppp,periodify,rotate,affine
实例----------Examples----------
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
plot(X, col="red")
Y <- shift(X, c(0.05,0.05))
plot(Y, add=TRUE, col="blue")
shift(Y, origin="mid")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|