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

R语言 sperich包 fill.Areas()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 15:00:07 | 显示全部楼层 |阅读模式
fill.Areas(sperich)
fill.Areas()所属R语言包:sperich

                                        Fill Algorithm
                                         填充算法

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

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

This function fills all bounded areas in a grid.
此功能在网格中填充有界区域。


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


fill.Areas(grid, landwatermask)



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

参数:grid
A grid in which the areas should be filled. Cells with values greater than zero  represent the bounds, cells with values lower or equal zero will be filled with  value 1 if they are bounded.
应填写在该领域的网格。值大于零代表单元的边界,单元值低于或等于零,将充满值为1,如果他们是有界的。


参数:landwatermask
A grid containing the land-water-information of the observed area.  If a grid cell containes no land, the value of the cell in the  landwatermask is -1, otherwise it is 0. Cells with negative values will not be filled.
的网格中所观察到的区域的土地与水的信息。一个的网格单元containes没有土地如果的landwatermask的单元格中的值是-1,否则为0。单元的负值将不被填充。


Details

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

This function fills all bounded areas in a grid.
此功能在网格中填充有界区域。


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

The grid with filled areas.
网格填充区域。


(作者)----------Author(s)----------


Maximilian Lange, Sven Lautenbach



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


##initialize data[#初始化数据]
m <- matrix(0,10,10)
m[2:8,2] <- 1
m[2:8,8] <- 1
m[2,2:8] <- 1
m[8,2:8] <- 1

##initialize mask (in this case: empty mask)[#初始化面膜(在这种情况下:空掩码)]
mask <- matrix(0,10,10)

##calculate the distance of the two points[#计算的距离的两个点]
m <- fill.Areas(m, mask)
image(m)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 20:39 , Processed in 0.024983 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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