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

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

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

                                        Area of a Window
                                         区的一个窗口

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

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

Computes the area of a window
计算一个窗口的面积


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


area.owin(w)
## S3 method for class 'owin'
volume(x)



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

参数:w
A window, whose area will be computed. This should be an object of class owin, or can be given in any format acceptable to as.owin().  
一个窗口,将计算其面积。这应该是一个对象的类owin,或可以得到可接受的任何格式as.owin()。


参数:x
Object of class owin
对象的类owin


Details

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

If the window w is of type "rectangle" or "polygonal", the area of this rectangular window is computed by analytic geometry. If w is of type "mask"  the area of the discrete raster approximation of the window is computed by summing the binary image values and adjusting for pixel size.
如果窗口w类型"rectangle"或"polygonal",这个矩形窗口的面积的计算方法是解析几何。如果w的类型是"mask"计算二进制图象值求和并调整像素尺寸的窗口的面积的离散栅格近似。

The function volume.owin is identical to area.owin except for the argument name. It is a method for the generic function volume.
函数volume.owin是area.owin除了参数名称相同。这是一个方法的通用函数volume。


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

A numerical value giving the area of the window.
甲给人的窗口区域的数值。


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

perimeter, diameter.owin, owin.object, as.owin
perimeter,diameter.owin,owin.object,as.owin


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


  w <- unit.square()
  area.owin(w)
       # returns 1.00000[收益1.00000]

  k <- 6
  theta <- 2 * pi * (0k-1))/k
  co <- cos(theta)
  si <- sin(theta)
  mas <- owin(c(-1,1), c(-1,1), poly=list(x=co, y=si))
  area.owin(mas)
      # returns approx area of k-gon[约区域返回的k-哥恩]
  
  mas <- as.mask(square(2), eps=0.01)
  X <- raster.x(mas)
  Y <- raster.y(mas)
  mas$m <- ((X - 1)^2 + (Y - 1)^2 <= 1)
  area.owin(mas)
       # returns 3.14 approx     [返回3.14约]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-15 01:04 , Processed in 0.025474 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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