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

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

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

                                        Quadrat counting for a point pattern
                                         样方计数的点模式

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

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

Divides window into quadrats and  counts the numbers of points in each quadrat.
将窗口样方和计数在每个样点的数量。


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


  quadratcount(X, ...)
  ## S3 method for class 'ppp'
quadratcount(X, nx=5, ny=nx, ...,
               xbreaks=NULL, ybreaks=NULL, tess=NULL)
  ## S3 method for class 'splitppp'
quadratcount(X, ...)



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

参数:X
A point pattern (object of class "ppp") or a split point pattern (object of class "splitppp").  
A点模式(类的对象"ppp")或一个分割点模式(类的对象"splitppp")。


参数:nx,ny
Numbers of rectangular quadrats in the x and y directions. Incompatible with xbreaks and ybreaks.  
x和y方向的长方形样方数。不兼容的xbreaks和ybreaks。


参数:...
Additional arguments passed to quadratcount.ppp.
额外的参数传递给quadratcount.ppp。


参数:xbreaks
Numeric vector giving the x coordinates of the boundaries of the rectangular quadrats. Incompatible with nx.  
数值向量给x坐标的边界矩形样方。不相容的nx。


参数:ybreaks
Numeric vector giving the y coordinates of the boundaries of the rectangular quadrats. Incompatible with ny.  
数值向量给y坐标的边界矩形样方。不相容的ny。


参数:tess
Tessellation (object of class "tess") determining the quadrats. Incompatible with nx,ny,xbreaks,ybreaks.  
Tessellation(曲面细分)(对象类"tess")确定的样方。不相容的nx,ny,xbreaks,ybreaks。


Details

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

Quadrat counting is an elementary technique for analysing spatial point patterns. See Diggle (2003).
样方计数是一个基本的技术分析空间点模式。 Diggle(2003年)。

If X is a point pattern, then  by default, the window containing the point pattern X is divided into an nx * ny grid of rectangular tiles or "quadrats". (If the window is not a rectangle, then these tiles are intersected with the window.) The number of points of X falling in each quadrat is counted. These numbers are returned as a contingency table.
X如果是一个点的模式,则默认情况下,窗口,其中包含的点模式X分为nx * ny格的矩形的瓷砖或“样方”。 (如果该窗口是不是一个矩形,然后将这些瓷砖相交的窗口。)点的数量X在每个样方计数下降。这些数字的形式返回一个列联表。

If xbreaks is given, it should be a numeric vector giving the x coordinates of the quadrat boundaries. If it is not given, it defaults to a sequence of nx+1 values equally spaced over the range of x coordinates in the window X$window.
如果xbreaks,它应该是一个数值向量给x样方的边界坐标。如果没有给出,它默认的序列nx+1值同样间隔的窗口xX$window坐标的范围内。

Similarly if ybreaks is given, it should be a numeric vector giving the y coordinates of the quadrat boundaries. It defaults to a vector of ny+1 values equally spaced over the range of y coordinates in the window. The lengths of xbreaks and ybreaks may be different.
同样,如果ybreaks,它应该是一个数值向量给y样方的边界坐标。它默认的向量ny+1值y在窗口中的坐标的范围内,同样间隔。的长度xbreaks和ybreaks可能是不同的。

Alternatively, quadrats of any shape may be used. The argument tess can be a tessellation (object of class "tess") whose tiles will serve as the quadrats.
可替换地,可以使用任何形状的样方。参数tess可以镶嵌(类的对象"tess")将作为样方的瓷砖。

The algorithm counts the number of points of X falling in each quadrat, and returns these counts as a contingency table.
该算法计算点的数量X属于每个样方,并返回这些数列联表。

The return value is a table which can be printed neatly. The return value is also a member of the special class "quadratcount". Plotting the object will display the quadrats, annotated by their counts. See the examples.
返回值是一个table可打印整齐。返回值也是一个成员的特殊类"quadratcount"。绘制的对象将显示的样方,注明他们的计数。见的例子。

If X is a split point pattern (object of class "splitppp" then quadrat counting will be performed on each of the components point patterns, and the resulting contingency tables will be returned in a list. This list can be printed or plotted.
如果X是一个分割点模式(类的对象"splitppp"那么样计数将每个元件的点图案,将返回列表中的列联表。这个列表可以是打印或绘制。

Marks attached to the points are ignored by quadratcount.ppp. To obtain a separate contingency table for each type of point in a multitype point pattern, first separate the different points using split.ppp, then apply quadratcount.splitppp. See the Examples.
被忽略的quadratcount.ppp的点标记。各类型的点在一个多类型的点模式,首先要获得一个单独的列联表分离的不同点split.ppp,然后用quadratcount.splitppp。请参阅范例。


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

The value of quadratcount.ppp is a  contingency table containing the number of points in each quadrat. The table is also an object of the special class "quadratcount" and there is a plot method for this class.
quadratcount.ppp的值是一个列联表包含在每个样点的数量。下表是对象的特殊类"quadratcount"和这个类的方法是一个图。

The value of quadratcount.splitppp is a list of such contingency tables, each containing the quadrat counts for one of the component point patterns in X. This list also has the class "listof" which has print and plot methods.
quadratcount.splitppp是这样的列联表的列表,每个包含一个组件模式X的样方数。这个列表也有类"listof"打印和绘图方法。


注意----------Note----------

To perform a chi-squared test based on the quadrat counts, use quadrat.test.
要进行卡方检验的样方数的基础上,使用quadrat.test。


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




参考文献----------References----------

Academic Press, 2003.
Fractals, random shapes and point fields: methods of geometrical statistics. John Wiley and Sons.

参见----------See Also----------

quadrat.test, quadrats, quadratresample, miplot
quadrat.test,quadrats,quadratresample,miplot


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


X <- runifpoint(50)
quadratcount(X)
quadratcount(X, 4, 5)
quadratcount(X, xbreaks=c(0, 0.3, 1), ybreaks=c(0, 0.4, 0.8, 1))
qX <-  quadratcount(X, 4, 5)

# plotting:[绘制:]
plot(X, pch="+")
plot(qX, add=TRUE, col="red", cex=1.5, lty=2)

# irregular window[不规则窗口]
data(humberside)
plot(humberside)
qH <- quadratcount(humberside, 2, 3)
plot(qH, add=TRUE, col="blue", cex=1.5, lwd=2)

# multitype - split[多类型 - 斯普利特]
plot(quadratcount(split(humberside), 2, 3))

# quadrats determined by tessellation:[样方由Tessellation(曲面细分):]
B <- dirichlet(runifpoint(6))
qX <- quadratcount(X, tess=B)
plot(X, pch="+")
plot(qX, add=TRUE, col="red", cex=1.5, lty=2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 18:00 , Processed in 0.037522 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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