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

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

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

                                        Add distance information to resampling objects
                                         距离信息,重采样对象

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

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

Add distance information to resampling objects
距离信息,重采样对象


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


  add.distance(object, ...)

  ## S3 method for class 'resampling'
add.distance(object, data,
    coords = c("x", "y"), ...)

  ## S3 method for class 'represampling'
add.distance(object, ...)



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

参数:object
resampling or represampling object
resampling或represampling对象


参数:...
Additional arguments to dataset.distance and add.distance.resampling, respectively
额外的参数dataset.distance和add.distance.resampling,分别


参数:data
data.frame containing at least the columns specified by coords
data.frame的至少包含列指定的coords


参数:coords
(ignored by partition.cv)
(忽略的partition.cv)


Details

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

Nearest-neighbour distances are calculated for each sample in the test set. These nrow(???$test) nearest-neighbour distances are then averaged. Aggregation methods other than mean can be chosen using the fun argument, which will be passed on to dataset.distance.
最近邻的距离,计算每个样品中的测试集。这些nrow(???$test)的最近邻距离,然后取平均值。聚合以外的其他方法mean可以选择使用fun的说法,这将被传递给dataset.distance。


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

A resampling or represampling object containing an additional $distance component in each resampling object. The distance component is a single numeric value indicating, for each train / test pair, the (by default, mean) nearest-neighbour distance between the two sets.
Aresampling或represampling对象,它包含一个额外的$distance组成部分,每一个resampling对象。组件是distance一个单一的数值表明,每一个train/test对,(默认情况下,意味着两套)最近的邻居之间的距离。


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

dataset.distance represampling resampling
dataset.distancerepresamplingresampling


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


data(ecuador) # Muenchow et al. (2012), see ?ecuador[明肖等。 (2012年),厄瓜多尔,看到了吗?]
nsp.parti = partition.cv(ecuador)
sp.parti = partition.kmeans(ecuador)
nsp.parti = add.distance(nsp.parti, ecuador)
sp.parti = add.distance(sp.parti, ecuador)
# non-spatial partioning: very small test-training distance:[非空间分割方式非常小的测试培训的距离:]
nsp.parti[[1]][[1]]$distance
# spatial partitioning: more substantial distance, depending on number of folds etc.[空间分割较大幅度的距离,根据褶皱数目等]
sp.parti[[1]][[1]]$distance

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 23:18 , Processed in 0.020233 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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