perimeter(spatstat)
perimeter()所属R语言包:spatstat
Perimeter Length of Window
周长窗口
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the perimeter length of a window
计算一个窗口的周长
用法----------Usage----------
perimeter(w)
参数----------Arguments----------
参数:w
A window (object of class "owin") or data that can be converted to a window by as.owin.
一个窗口(对象类"owin")或数据,可以转换为一个窗口as.owin。
Details
详细信息----------Details----------
This function computes the perimeter (length of the boundary) of the window w. If w is a rectangle or a polygonal window, the perimeter is the sum of the lengths of the edges of w. If w is a mask, it is first converted to a polygonal window using as.polygonal, then staircase edges are removed using simplify.owin, and the perimeter of the resulting polygon is computed.
此函数计算的窗口w边界(边界的长度)。如果w是一个矩形或多边形的窗口中,外围边缘w的长度的总和。如果w是掩模,它首先被转换为一个多边形窗口使用as.polygonal,然后楼梯边缘中除去使用simplify.owin,并且所得到的多边形的周长计算。
值----------Value----------
A numeric value giving the perimeter length 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----------
area.owin diameter.owin, owin.object, as.owin
area.owindiameter.owin,owin.object,as.owin
实例----------Examples----------
perimeter(square(3))
data(letterR)
perimeter(letterR)
if(spatstat.options("gpclib")) {
if(interactive()) {
print(perimeter(as.mask(letterR)))
} else print(perimeter(as.mask(letterR, dimyx=32)))
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|