找回密码
 注册
查看: 548|回复: 0

R语言 spatstat包 intersect.owin()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:35:34 | 显示全部楼层 |阅读模式
intersect.owin(spatstat)
intersect.owin()所属R语言包:spatstat

                                        Intersection, Union or Set Subtraction of Two Windows
                                         交,或设置两个Windows减法

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Yields the intersection, union or set subtraction of two windows.
产生交集,两个窗口的工会或一组减法。


用法----------Usage----------


   intersect.owin(A, B, ..., fatal=TRUE)
   union.owin(A,B, ...)
   setminus.owin(A,B, ...)



参数----------Arguments----------

参数:A
A window object (see Details).
一个窗口对象(见详情)。


参数:B
A window object.
一个窗口对象。


参数:...
Optional arguments passed to as.mask to control the discretisation, if required.  
可选参数传递as.mask控制的离散,如果需要的话。


参数:fatal
Logical. Determines what happens if the intersection is empty.  
逻辑。确定会发生什么,如果交集为空。


Details

详细信息----------Details----------

The function intersect.owin computes the intersection between the two windows A and B, while union.owin computes their union. The function setminus.owin computes the intersection of A with the complement of B.
的功能intersect.owin计算在两个窗口之间的交叉A和B,而union.owin计算它们的工会。的功能setminus.owin计算AB与补体的交点。

The arguments A and B must be window objects (either objects of class "owin", or data that can be coerced to this class by as.owin).
的参数A和B必须的窗口对象(无论是对象的类"owin",或数据可以强制转换为此类as.owin)。

If the intersection is empty, then if fatal=FALSE the result is NULL, while if fatal=TRUE an error occurs.
如果交集是空的,那么如果fatal=FALSE的结果是NULL,而如果fatal=TRUE发生错误。

The intersection or union of more than two windows can also be computed. For intersect.owin and union.owin the arguments ... can include additional window objects.
的交点或联合中的两个以上的窗口,也可以被计算出来。对于intersect.owin和union.owin的参数...的可以包含其他的窗口对象。


值----------Value----------

A window (object of class "owin").
一个窗口(类的对象"owin"“)。


(作者)----------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----------

is.subset.owin, overlap.owin, bounding.box, owin.object
is.subset.owin,overlap.owin,bounding.box,owin.object


实例----------Examples----------


# rectangles[矩形]
   u <- unit.square()
   v <- owin(c(0.5,3.5), c(0.4,2.5))
# polygon[多边形]
   data(letterR)
# mask[面膜]
   m <- as.mask(letterR)

# two rectangles[两个矩形]
   intersect.owin(u, v)
   union.owin(u,v)
   setminus.owin(u,v)

# polygon and rectangle[多边形和矩形]
   intersect.owin(letterR, v)
   union.owin(letterR,v)
   setminus.owin(letterR,v)

# mask and rectangle[面具和矩形]
   intersect.owin(m, v)
   union.owin(m,v)
   setminus.owin(m,v)

# mask and polygon[面具和多边形]
   p <- rotate(v, 0.2)
   intersect.owin(m, p)
   union.owin(m,p)
   setminus.owin(m,p)

# two polygons[两个多边形]
   A <- letterR
   B <- rotate(letterR, 0.2)
   plot(bounding.box(A,B), main="intersection")
   w <- intersect.owin(A, B)
   plot(w, add=TRUE, col="lightblue")
   plot(A, add=TRUE)
   plot(B, add=TRUE)

   plot(bounding.box(A,B), main="union")
   w <- union.owin(A,B)
   plot(w, add=TRUE, col="lightblue")   
   plot(A, add=TRUE)
   plot(B, add=TRUE)

   plot(bounding.box(A,B), main="set minus")
   w <- setminus.owin(A,B)
   plot(w, add=TRUE, col="lightblue")   
   plot(A, add=TRUE)
   plot(B, add=TRUE)

# intersection and union of three windows[三个窗口的交集和并集]
   C <- shift(B, c(0.2, 0.3))
   plot(union.owin(A,B,C))
   plot(intersect.owin(A,B,C))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-15 02:16 , Processed in 0.028349 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表