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

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

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

                                        Centroid of a window
                                         质心的一个窗口

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

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

Computes the centroid (centre of mass) of a window
计算的重心(质心)的一个窗口


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


centroid.owin(w)



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

参数:w
A window
一个窗口


Details

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

The centroid of the window w is computed. The centroid (“centre of mass”)  is the point whose x and y coordinates  are the mean values of the x and y coordinates of all points in the window.
计算的质心的窗口w。心(“质心”)是点的x和y坐标的平均值x和y坐标中的所有点的窗口。

The argument w should be a window (an object of class "owin", see owin.object for details) or can be given in any format acceptable to as.owin().
参数w应该是一个窗口类的一个对象"owin",看到owin.object的详细信息,或可以以任何格式的接受的as.owin()。

The calculation uses an exact analytic formula for the case of polygonal windows.
该计算使用的多边形的窗口的情况下的精确解析公式。

Note that the centroid of a window is not necessarily inside  the window. If the window is convex then it does contain its centroid.
请注意,在窗口内的一个窗口的质心是不一定。如果窗口是凸的,那么它确实包含它的质心。


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

A list with components x, y giving the coordinates of the centroid of the window w.
组件的列表与x, y给窗口w的质心的坐标。


(作者)----------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, as.owin
owin,as.owin


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


  w <- owin(c(0,1),c(0,1))
  centroid.owin(w)
  # returns 0.5, 0.5[返回0.5,0.5]

  data(demopat)
  w <- demopat$window
  # an irregular window[一个不规则的窗口]
  ## Not run: [#不运行:]
  plot(w)
  # plot the window[绘制窗口]
  points(centroid.owin(w))
  # mark its centroid [纪念它的质心]
  
## End(Not run)[#(不执行)]

  wapprox <- as.mask(w)
  # pixel approximation of window[像素近似的窗口]
  ## Not run: [#不运行:]
  points(centroid.owin(wapprox))
  # should be indistinguishable [应该是没有什么区别的]
  
## End(Not run)[#(不执行)]
         

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-12 16:59 , Processed in 0.028282 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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