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

R语言 spectralGP包 rdist.earth()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:54:08 | 显示全部楼层 |阅读模式
rdist.earth(spectralGP)
rdist.earth()所属R语言包:spectralGP

                                        Great circle distance matrix
                                         大圈的距离矩阵

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

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

Given two sets of longitude/latitude locations computes the Great circle (geogrpahic)  distance matrix among all pairings. This function and help file are copied from the fields library.
由于两套经度/纬度位置计算大圈(geogrpahic)之间的距离矩阵所有配对。此功能和帮助文件从库中复制。


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


rdist.earth(loc1, loc2, miles = TRUE, R = NULL)



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

参数:loc1
Matrix of first set of lon/lat coordinates first column is the longitudes and second is the latitudes.  
矩阵的经度,二是纬度经度/纬度坐标的第一列的第一套。


参数:loc2
Matrix of second  set of lon/lat coordinates first column is the longitudes and second is the latitudes. If missing x1 is used.  
第二组经度/纬度坐标的第一列的矩阵的经度,二是纬度。如果缺少x1的使用。


参数:miles
If true distances are in statute miles if false distances in kilometers.  
如果真正的距离是假公里的距离,如果在法定英里。


参数:R
Radius to use for sphere to find spherical distances. If NULL the radius is either in miles or kilometers depending on the values of the miles argument. If R=1 then distances are of course in radians.  
半径要使用的球,找到球的距离。如果为NULL半径为英里或公里的里程参数的值。如果R = 1,那么距离是当然的弧度。


Details

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

Surprisingly this  all done efficiently in S.
令人惊讶的是这一切都高效地完成S.


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

The great circle distance matrix if nrow(x1)=m and nrow( x2)=n then the returned matrix will be mXn.
如果NROW大圈的距离矩阵(X1)=米和NROW的(X2)= n,则返回的矩阵将MXN。


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

rdist, exp.earth.cov
RDIST,exp.earth.cov


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


lon.lat=cbind(runif(20,0,360),runif(20,-90,90))
out<- rdist.earth (lon.lat)
#out is a 20X20 distance matrix        [是一个20X20的距离矩阵]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 13:09 , Processed in 0.076571 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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