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

R语言 sperrorest包 dataset.distance()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 15:02:22 | 显示全部楼层 |阅读模式
dataset.distance(sperrorest)
dataset.distance()所属R语言包:sperrorest

                                        Calculate mean nearest-neighbour distance between point datasets
                                         计算平均最近邻点数据集之间的距离

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

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

dataset.distance calculates Euclidean nearest-neighbour distances between two point datasets and summarizes these distances using some function, by default the mean.
dataset.distance计算两个点数据集的欧氏距离最近的邻居之间的距离和,总结使用某些功能,默认情况下,这些距离的意思。


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


  dataset.distance(d1, d2, x.name = "x", y.name = "y",
    fun = mean, method = "euclidean", ...)



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

参数:d1
a data.frame with (at least) columns with names given by x.name and y.name; these contain the x and y coordinates, respectively
data.frame(至少)列名x.name和y.name;这些包含x和y坐标,分别


参数:d2
see d1 - second set of points
d1  - 第二组点


参数:x.name
name of column in d1 and d2 containing the x coordinates of points
d1和d2含有的x坐标的点的列中的名称


参数:y.name
same for y coordinates
相同的y坐标


参数:fun
function to be applied to the vector of nearest-neighbor distances of d1 from d2
函数被施加到的最近邻的矢量距离d1从d2


参数:method
type of distance metric to be used; only 'euclidean' is currently supported
要使用的距离度量,唯一的'euclidean'是目前支持


参数:...
additional arguments to fun
额外的参数fun


Details

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

Nearest-neighbour distances are calculated for each point in d1, resulting in a vector of length nrow(d1), and fun is applied to this vector.
最近邻的距离计算中的每个点d1,导致在一个向量的长度nrow(d1),和fun被施加到这个向量。


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

depends on fun; typically (e.g., mean) a numeric vector of length 1
取决于fun;通常(例如,mean)数字矢量的长度为1


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

add.distance
add.distance


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


d = data.frame(x = rnorm(100), y = rnorm(100))
dataset.distance(d, d) # == 0[== 0]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 16:03 , Processed in 0.030263 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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