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

R语言 secr包 make.mask()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 23:59:20 | 显示全部楼层 |阅读模式
make.mask(secr)
make.mask()所属R语言包:secr

                                         Build Habitat Mask
                                         建设人居面膜

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

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

Construct a habitat mask object for spatially explicit capture-recapture.  A mask object is a set of points with optional attributes.
构建栖息地屏蔽空间明确的捕获 - 再捕获的对象。遮罩对象是一组可选的属性点。


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


make.mask(traps, buffer = 100, spacing = NULL, nx = 64, ny = 64,
    type = "traprect", poly = NULL, poly.habitat = TRUE,
    keep.poly = TRUE, check.poly = TRUE, pdotmin = 0.001, ...)



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

参数:traps
object of class traps  
对象的类traps


参数:buffer
width of buffer in metres  
在米宽度的缓冲区


参数:spacing
spacing between grid points (metres)  
网格点之间的间距(米)


参数:nx
number of grid points in "x" direction  
x方向的网格点的数目


参数:ny
number of grid points in "y" direction (type = "rectangular")  
格点数目Y方向(类型为“长方形”)


参数:type
character string for method to use ("traprect", "trapbuffer", "pdot", "polygon", "clusterrect", "clusterbuffer", "rectangular")  
字符串的使用方法(“traprect”的告警缓冲区“,”PDOT“,”多边形“,”clusterrect,clusterbuffer“,”长方形“)


参数:poly
bounding polygon to which mask should be clipped (see Details)  
口罩应被裁剪边界多边形(见详情)


参数:poly.habitat
logical for whether poly represents habitat or its inverse (non-habitat)
逻辑是否聚栖息地或它的逆(非栖息地)


参数:keep.poly
logical; if TRUE any bounding polygon is saved as the attribute "polygon"  
合乎逻辑;如果是TRUE保存任何边界多边形属性“多边形”


参数:check.poly
logical; if TRUE a warning is given for traps that lie outside a bounding polygon  
逻辑之外的边界多边形的陷阱,如果TRUE警告


参数:pdotmin
minimum detection probability for inclusion in mask when type = "pdot" (optional)  
纳入最低检测概率面膜的时候type = "pdot"(可选)


参数:...
additional arguments passed to pdot when type = "pdot"  
额外的参数传递给pdottype = "pdot"


Details

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

The "traprect" method constructs a grid of points in the rectangle formed by adding a buffer strip to the minimum and maximum x-y coordinates of the detectors in traps. Both "trapbuffer" and "pdot" start with a "traprect" mask and drop some points.
traprect方法构造一个网格形成通过添加缓冲带的最小和最大的xy坐标的检测器在traps,在矩形的点。这两个“告警缓冲区”和“PDOT”开始与“traprect”面具和删除一些点。

The "trapbuffer" method restricts the grid to points within distance buffer of any detector.
告警缓冲区的方法将限制距离内buffer任何探测器的网格点。

The "pdot" method restricts the grid to points for which the net detection probability p.(X) (see pdot) is at least pdotmin. Additional parameters are used by pdot (detectpar, noccasions). Set these with the ... argument; otherwise make.mask will silently use the arbitrary defaults. pdot is currently limited to a halfnormal detection function.
PDOT方法限制网格点净检测概率p.(X)(看到pdot)是至少pdotmin。其他参数的方法是pdot(detectpar,noccasions)。将这些与...参数;否则make.mask会悄悄地任意使用该默认值。 pdot是目前有限的到一个halfnormal的检测功能。

The "clusterrect" method constructs a grid of rectangular submasks centred on "clusters" of detectors generated with trap.builder (possibly indirectly by make.systematic). The "clusterbuffer" method resembles "trapbuffer", but is usually faster when traps are arranged in clusters because it starts with a "clusterrect" mask.
,的“clusterrect”方法构造一个网格的的矩形submasks中心的检测器上的“聚类”trap.builder(可能是间接的产生make.systematic“)。 ,的“clusterbuffer”方法类似于“告警缓冲区,但通常是因为它的速度会更快的陷阱被安排在聚类开始的”clusterrect的面具。

The "rectangular" method constructs a simple rectangular mask with the given nx, ny and spacing.
“长方形”的方法构造一个简单的矩形遮罩的nx,ny和间距。

If poly is specified, points outside poly are dropped. The "polygon" method places points on a rectangular grid clipped to the polygon (buffer is not used). Thus "traprect" is equivalent to "polygon" when poly is supplied. poly may be either
如果poly指定,点外poly被丢弃。剪切到的“多边形”方法的地方上的矩形网格点的多边形(buffer不使用)。因此,traprect“等于”多边形“,,当poly提供。 poly可以是

a matrix or dataframe of two columns interpreted as x and y coordinates, or
两列的矩阵或数据框解释为x和y坐标,或

a SpatialPolygonsDataFrame object as defined in the package "sp", possibly from reading a shapefile with readShapePoly() from package "maptools".
的一个SpatialPolygonsDataFrame对象中定义的“SP”的包,可能是从包“maptools”的与readShapePoly()读取的shapefile。

If spacing is not specified then it is determined by dividing the range of the x coordinates (including any buffer) by nx.
如果spacing还没有指定,则它是由分割的x坐标的范围内(包括任何缓冲器)nx。


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

An object of class mask.  When keep.poly = TRUE, poly and poly.habitat are saved as attributes of the mask.
对象的类mask。当keep.poly = TRUE,poly和poly.habitat保存为属性的面具。


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

A warning is displayed if type = "pdot" and the buffer is too small to include all points with p. > pdotmin.
显示一个警告,如果type = "pdot"和缓冲区过,以包括所有点p.> pdotmin的小。

A habitat mask is needed to fit an SECR model and for some related computations. The default mask settings in secr.fit may be good enough, but it is preferable to use make.mask to construct a mask in advance and to pass that mask as an argument to secr.fit.
需要的栖息地屏蔽,以适应SECR的模型和一些相关的计算。默认的掩码设置在secr.fit可能是不够好,但它最好使用make.mask来建立一个口罩提前面具作为一个参数传递给secr.fit通过的。

The function buffer.contour displays the extent of one or more "trapbuffer" zones - i.e. the effect of buffering the detector array with varying strip widths.
的功能buffer.contour显示的范围内的一个或多个告警缓冲区“地带 - 即具有不同的带钢宽度的检测器阵列的缓冲效果。


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

mask, subset.mask,
mask,subset.mask,


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



temptrap <- make.grid(nx = 10, ny = 10, spacing = 30)

## default method: traprect[默认的方法:traprect]
tempmask <- make.mask(temptrap, spacing = 5)
plot(tempmask)
summary (tempmask)

## make irregular detector array by subsampling [#不规则的探测器阵列的二次抽样]
## form mask by `trapbuffer' method[告警缓冲区“的方法形成掩模]
temptrap <- subset (temptrap, sample(nrow(temptrap), size = 30))
tempmask <- make.mask (temptrap, spacing = 5, type = "trapbuffer")
plot (tempmask)
plot (temptrap, add = TRUE)

## form mask by "pdot" method[形成掩模PDOT“的方法]
temptrap <- make.grid(nx = 6, ny = 6)
tempmask <- make.mask (temptrap, buffer = 150, type = "pdot",
    pdotmin = 0.0001, detectpar = list(g0 = 0.1, sigma = 30),
    noccasions = 4)
plot (tempmask)
plot (temptrap, add = TRUE)

## Using an ESRI polygon shapefile for clipping (shapefile[#使用ESRI的多边形shape文件削波(shape文件]
## polygons may include multiple islands and holes).[多边形可能包括多个岛屿和空穴)。]
## Requires the `maptools' package of Nicholas J. Lewin-Koh, Roger[#需要的的maptools包的尼古拉斯J.列文岛,罗杰]
## Bivand, and others; `maptools' uses the `sp' package of spatial[#Bivand,和其他人,“maptools使用SP包的空间]
## classes by Ed Pebesma and Roger Bivand.[#类,由Ed Pebesma和罗杰·Bivand。]

## Not run: [#不运行:]
require(maptools)
setwd(system.file("extdata", package = "secr"))
possumarea &lt;- readShapePoly("possumarea")  ## possumarea.shp etc.[#possumarea.shp等。]
possummask2 <- make.mask(traps(possumCH), spacing = 20,
    buffer = 250, type = "trapbuffer", poly = possumarea)
oldpar <- par(mar = c(1,6,6,6), xpd = TRUE)
plot (possummask2, ppoly = TRUE)
plot(traps(possumCH), add = T)
par(oldpar)

## if the polygon delineates non-habitat ...[#如果多边形描绘非栖息地...]
seaPossumMask <- make.mask(traps(possumCH), buffer = 1000,
    type = "traprect", poly = possumarea, poly.habitat = FALSE)
plot(seaPossumMask)
plot(traps(possumCH), add = T)
## this mask is not useful![#这个面膜是没有用的!]


## End(Not run)[#(不执行)]







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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 10:33 , Processed in 0.022016 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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