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

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

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

                                        Rectangular grid of points
                                         矩形网格点

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

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

Generates a rectangular grid of points in a window
在一个窗口中生成一个矩形网格的点


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


gridcentres(window, nx, ny)



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

参数:window
A window.  An object of class owin, or data in any format acceptable to as.owin().  
一个窗口。对象的类owin,或任何格式的数据中接受的as.owin()。


参数:nx
Number of points in each row of the rectangular grid.  
在每行中的矩形网格点的数量。


参数:ny
Number of points in each column of the rectangular grid.  
在每列中的矩形网格点的数量。


Details

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

This function creates a rectangular grid of points in the window.
这个函数创建一个矩形网格,点在窗口中。

The bounding rectangle of the window is divided into a regular nx * ny grid of rectangular tiles. The function returns the x,y coordinates of the centres of these tiles.
分为定期window格的矩形砖的边框nx * ny。该函数返回x,y这些瓷砖的中心坐标。

Note that some of these grid points may lie outside the window, if window is not of type "rectangle". The function inside.owin can be used to select those grid points which do lie inside the window. See the examples.
请注意,这些网格点可能超出窗口,如果window是不是类型"rectangle"。功能inside.owin可以用来选择这些网格点在于在窗口内。见的例子。

This function is useful in creating dummy points for quadrature schemes (see quadscheme) and for other miscellaneous purposes.
在创建虚拟点积分计划(见quadscheme)和其他杂项用途,此功能非常有用。


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

A list with two components x and y, which are numeric vectors giving the coordinates of the points of the rectangular grid.
一个列表,x和y,这是数字的矩形网格的点的坐标向量给两部分组成。


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

quad.object, quadscheme, inside.owin, stratrand
quad.object,quadscheme,inside.owin,stratrand


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


  w <- unit.square()
  xy <- gridcentres(w, 10,15)
  ## Not run: [#不运行:]
  plot(w)
  points(xy)
  
## End(Not run)[#(不执行)]

  bdry <- list(x=c(0.1,0.3,0.7,0.4,0.2),
               y=c(0.1,0.1,0.5,0.7,0.3))
  w <- owin(c(0,1), c(0,1), poly=bdry)
  xy <- gridcentres(w, 30, 30)
  ok <- inside.owin(xy$x, xy$y, w)
  ## Not run: [#不运行:]
  plot(w)
  points(xy$x[ok], xy$y[ok])
  
## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-14 13:04 , Processed in 0.025518 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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