tess(spatstat)
tess()所属R语言包:spatstat
Create a Tessellation
创建一个Tessellation(曲面细分)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates an object of class "tess" representing a tessellation of a spatial region.
创建类的一个对象"tess"一个Tessellation(曲面细分)的空间区域。
用法----------Usage----------
tess(..., xgrid = NULL, ygrid = NULL, tiles = NULL, image = NULL,
window=NULL, keepempty=FALSE)
参数----------Arguments----------
参数:...
Ignored.
忽略。
参数:xgrid,ygrid
Cartesian coordinates of vertical and horizontal lines determining a grid of rectangles. Incompatible with other arguments.
笛卡尔坐标系的确定的矩形的网格的垂直线和水平线。与其他参数不兼容。
参数:tiles
List of tiles in the tessellation. A list, each of whose elements is a window (object of class "owin"). Incompatible with other arguments.
瓷砖镶嵌的名单。一个列表,每个列表中元素的一个窗口(类的对象"owin"“)。与其他参数不兼容。
参数:image
Pixel image which specifies the tessellation. Incompatible with other arguments.
像素的图像,指定的Tessellation(曲面细分)。与其他参数不兼容。
参数:window
Optional. The spatial region which is tessellated (i.e. the union of all the tiles). An object of class "owin".
可选。细化的空间区域(即所有的瓷砖联盟)。对象的类"owin"。
参数:keepempty
Logical flag indicating whether empty tiles should be retained or deleted.
逻辑标志,指示是否应保留空砖或删除。
Details
详细信息----------Details----------
A tessellation is a collection of disjoint spatial regions (called tiles) that fit together to form a larger spatial region. This command creates an object of class "tess" that represents a tessellation.
一个Tessellation(曲面细分)是一家集不相交的空间区域(砖),组合在一起,形成一个更大的空间区域。此命令创建一个对象类"tess",代表了Tessellation(曲面细分)。
Three types of tessellation are supported:
支持三种类型的Tessellation(曲面细分):
tiles are rectangles, with sides parallel to the x and y axes. They may or may not have equal size and shape. The arguments xgrid and ygrid determine the positions of the vertical and horizontal grid lines, respectively. (See quadrats for another way to do this.)
瓷砖是矩形,x和y轴的边平行。他们可能会或可能不具有相同的尺寸和形状。的参数xgrid和ygrid确定的水平和垂直网格线的位置,分别。 (见quadrats另一种方式来做到这一点。)
tiles are arbitrary spatial regions. The argument tiles is a list of these tiles, which are objects of class "owin".
瓷砖是任意的空间区域。参数tiles是这些瓷砖的列表,这些对象的类"owin"。
Tiles are subsets of a fine grid of pixels. The argument image is a pixel image (object of class "im") with factor values. Each level of the factor represents a different tile of the tessellation. The pixels that have a particular value of the factor constitute a tile.
瓷砖罚款的像素网格的子集。参数image是一个像素的图像(类的对象"im")因子值。每个级别的Tessellation(曲面细分)的因素,代表了不同的瓷砖。具有特定值的因素的像素构成一个瓦片。
The optional argument window specifies the spatial region formed by the union of all the tiles. In other words it specifies the spatial region that is divided into tiles by the tessellation. If this argument is missing or NULL, it will be determined by computing the set union of all the tiles. This is a time-consuming computation. For efficiency it is advisable to specify the window. Note that the validity of the window will not be checked.
可选参数window指定的空间区域,形成由工会所有的瓷砖。换句话说,它指定的空间区域,分为瓷砖镶嵌的。如果此参数丢失或NULL,它会确定所有的瓷砖计算集。这是一个耗费时间的计算。为了提高效率,这是可取的指定窗口。需要注意的是,将不被检查的有效性的窗口。
Empty tiles may occur, either because one of the entries in the list tiles is an empty window, or because one of the levels of the factor-valued pixel image image does not occur in the pixel data. When keepempty=TRUE, empty tiles are permitted. When keepempty=FALSE (the default), tiles are not allowed to be empty, and any empty tiles will be removed from the tessellation.
空瓷砖,可能会发生,无论是因为一个条目列表中的tiles是一个空的窗口,或者是因为因子值的像素的图像image中不会发生的象素数据的一个水平。当keepempty=TRUE,空砖是允许的。当keepempty=FALSE(默认值),瓷砖不允许为空,并镶嵌的任何空的瓷砖将被删除。
There are methods for print, plot, [ and [<- for tessellations. Use tiles to extract the list of tiles in a tessellation, or tile.areas to compute their areas.
有print,plot,[和[<-镶嵌的方法。使用tiles提取的瓷砖镶嵌,或tile.areas的来计算他们的领域。
Tessellations can be used to classify the points of a point pattern, in split.ppp, cut.ppp and by.ppp.
镶嵌可用于分类的点的点模式,在split.ppp,cut.ppp和by.ppp。
值----------Value----------
An object of class "tess" representing the tessellation.
对象的类"tess"镶嵌。
(作者)----------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----------
plot.tess, [.tess, as.tess, tiles, intersect.tess, split.ppp, cut.ppp, by.ppp, quadrats, bdist.tiles, tile.areas.
plot.tess,[.tess,as.tess,tiles,intersect.tess,split.ppp,cut.ppp,by.ppp,quadrats,bdist.tiles,tile.areas。
实例----------Examples----------
A <- tess(xgrid=0:4,ygrid=0:4)
A
B <- A[c(1, 2, 5, 7, 9)]
B
v <- as.im(function(x,y){factor(round(5 * (x^2 + y^2)))}, W=owin())
levels(v) <- letters[seq(length(levels(v)))]
E <- tess(image=v)
E
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|