disc(spatstat)
disc()所属R语言包:spatstat
Circular Window
圆形窗口
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a circular window
创建一个圆形的窗口
用法----------Usage----------
disc(radius=1, centre=c(0,0), ..., mask=FALSE, npoly=128)
参数----------Arguments----------
参数:radius
Radius of the circle.
圆的半径。
参数:centre
Coordinates of the centre of the circle.
的圆的中心的坐标。
参数:mask
Logical flag controlling the type of approximation to a perfect circle. See Details.
逻辑控制的类型近似的标志,以一个完美的圆。查看详细信息。
参数:npoly
Number of edges of the polygonal approximation, if mask=FALSE.
数量的多边形近似的边缘,如果mask=FALSE。
参数:...
Arguments passed to as.mask determining the pixel resolution, if mask=TRUE.
参数传递给as.mask确定像素的分辨率,如果mask=TRUE。
Details
详细信息----------Details----------
This command creates a window object representing a disc, with the given radius and centre.
此命令创建一个窗口对象,表示光盘,给定半径和中心。
By default, the circle is approximated by a polygon with npoly edges.
默认情况下,npoly边的多边形逼近圆。
If mask=TRUE, then the disc is approximated by a binary pixel mask. The resolution of the mask is controlled by the arguments ... which are passed to as.mask.
如果mask=TRUE,那么光盘近似由二进制象素掩模。该决议的面具控制的参数...:“这是传递给as.mask。
值----------Value----------
An object of class "owin" (see owin.object) specifying a window.
类的一个对象"owin"(owin.object)指定窗口。
注意----------Note----------
This function can also be used to generate regular polygons, by setting npoly to a small integer value. For example npoly=5 generates a pentagon and npoly=13 a triskaidecagon.
此功能也可用于定期生成的多边形,通过设置npoly到一个小的整数的值。例如npoly=5产生一个五角大楼和npoly=13triskaidecagon的,。
(作者)----------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----------
owin.object, owin, as.mask
owin.object,owin,as.mask
实例----------Examples----------
# unit disc[单位圆]
W <- disc()
# disc of radius 3 centred at x=10, y=5[在x = 10时,y = 5为中心的半径3光盘]
W <- disc(3, c(10,5))
#[]
plot(disc())
plot(disc(mask=TRUE))
# nice smooth circle[漂亮的光滑圆]
plot(disc(npoly=256))
# how to control the resolution of the mask[如何控制的分辨率的掩模]
plot(disc(mask=TRUE, dimyx=256))
# check accuracy of approximation[检查近似精度]
area.owin(disc())/pi
area.owin(disc(mask=TRUE))/pi
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|