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

R语言 spdep包 tolerance.nb()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:46:10 | 显示全部楼层 |阅读模式
tolerance.nb(spdep)
tolerance.nb()所属R语言包:spdep

                                         Function to construct edges based on a tolerance angle and a maximum distance
                                         函数来构造基于公差角边缘和最大距离

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

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

This function creates an object of class nb (defined in the library spdep) containing a connexion diagram. The edges between sites are based on a tolerance angle and a maximum distance. The angle is directional; its direction is always from the bottow to the top of the screen.
这个函数创建一个对象的类nb(定义库中的spdep),包含一个联接图。站点之间的边缘是根据上的的公差角度和最大距离。的角度是有方向性的,它的方向始终是从自下而上屏幕顶部。


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


tolerance.nb(coords, unit.angle = "degrees", max.dist, tolerance, rot.angle, plot.sites=FALSE)



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

参数:coords
A matrix or a data frame containing the X and Y coordinates of the study sites.  
的基质或含在X和Y坐标的数据框的研究地点。


参数:unit.angle
Character. The measurement units in which angles are defined: either "degrees" (default) or "radians".  
字符。角度的定义:无论是“度”(默认)或“弧度”的测量单位。


参数:max.dist
Numeric. The maximum distance of an edge linking two sites together.  
数字。边缘连接两个站点的最大距离。


参数:tolerance
Numeric. The tolerance angle in which a site can influence another site. The angle is measured vertically and from bottom to top of the pictures after rotation of the points.
数字。的耐受性角度在哪些网站可以影响另一个站点。角度测量垂直和旋转后的点从底部到顶部的图片。


参数:rot.angle
Numeric, optional. An angle at which a set of coordinates should be rotated before creating the connexion diagram. The set of coordinates is rotated counterclockwise. Negative values will produce a clockwise rotation.
数字,可选的。的角度在哪些应该是一组坐标旋转之前创建的亲戚关系图。的一组坐标是逆时针旋转。负值将产生顺时针旋转。


参数:plot.sites
Logical (TRUE, FALSE) determining if the site should be plotted in a graphic window. This graph allows one to make sure the points are rotated in a correct direction.
逻辑(TRUE,FALSE)决定,如果该网站应被绘制在一个图形窗口。本图,能够一个确保的点是在一个正确的方向旋转。


Details

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

Even though this function creates a connexion diagram based on a tolerance angle going from the bottom to the top of the screen, the resulting object is symmetric, meaning that a site influences another and vice versa. The final object does not represent a directional connexion network.
尽管这个函数创建一个联接图的公差角度的基础上,从底部到顶部的屏幕,所产生的对象是对称的,也就是说,一个网站的影响,反之亦然。最终的对象并不代表定向联接网络。


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

The function returns an object of class nb with a list of integer vectors  corresponding to neighbour region numbers.
该函数返回一个类的对象nb与邻区号码对应的向量整数的列表。


警告----------Warning----------

This function was not design to handle a large number of rows in coords. To use this function for a set of coordinates with more than 1500 entries is memory intensive.
此功能被设计来处理一个大的行数coords。要使用此功能为一组坐标1500多件参赛作品,占用大量内存。


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


F. Guillaume Blanchet



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

dnearneigh, cell2nb, graph2nb, tri2nb, knn2nb
dnearneigh,cell2nb,graph2nb,tri2nb,knn2nb


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


set.seed(1)
ex.data<-cbind(runif(50),rexp(50))

### Construct object of class nb with a tolerance angle of 30 degrees and a maximum distance of 2 m.[##构建对象类nb的容差角为30度,最大为2米的距离。]
nb.ex<-tolerance.nb(ex.data, unit.angle = "degrees", max.dist=1, tolerance = 30)

### Construct object of class nb with a tolerance angle of 30 degrees and a maximum distance of 2 m. The coordinates are rotated at an angle of 45 degrees counterclockwise.[##构建对象类nb的容差角为30度,最大为2米的距离。坐标是逆时针方向的角度为45度的旋转。]
nb.ex2<-tolerance.nb(ex.data, unit.angle = "degrees", max.dist=1, tolerance = 30, rot.angle = 45)

### Construct object of class nb with a tolerance angle of pi/8 radians and a maximum distance of 1.5 m. The coordinates are rotated at an angle of pi/4 radians clockwise.[##构造对象的类NB的公差pi / 8弧度和角度的最大距离为1.5米。坐标是pi / 4弧度顺时针方向旋转时的角度。]
nb.ex3<-tolerance.nb(ex.data, unit.angle = "radians", max.dist=1.5, tolerance = pi/8,rot.angle = -pi*2/3)


par(mfrow=c(1,3))
plot(nb.ex,ex.data,asp=1)
plot(nb.ex2,ex.data,asp=1)
plot(nb.ex3,ex.data,asp=1)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 06:12 , Processed in 0.021415 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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