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

R语言 sm包 nnbr()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 10:44:54 | 显示全部楼层 |阅读模式
nnbr(sm)
nnbr()所属R语言包:sm

                                        nearest neighbour distances from data in one or two dimensions
                                         近邻的距离在一维或两维的数据

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

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

This function calculates the k nearest neighbour distance from each value in x to the remainder of the data.  In two dimensions, Euclidean distance is used after standardising the data to have unit variance in each component.
这个函数计算k最近邻距离从剩余的数据中的每个值x。在二维空间中,使用欧几里德距离标准化的数据后,在每个组件中具有单位方差。


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


nnbr(x, k)



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

参数:x
the vector, or two-column matrix, of data.
的矢量,或两列的矩阵的数据。


参数:k
the required order of nearest neighbour. </table>
最近邻所需的顺序。 </ TABLE>


Details

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

see Section 1.7.1 of the reference below.
下面的参考,请参见第1.7.1节。


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

the vector of nearest neighbour distances.
的近邻距离向量。


参考文献----------References----------

Bowman, A.W. and Azzalini, A. (1997). Applied Smoothing Techniques for Data Analysis: the Kernel Approach with S-Plus Illustrations. Oxford University Press, Oxford.

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

none.
没有。


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


x  <- rnorm(50)
hw <- nnbr(x, 10)
hw <- hw/exp(mean(log(hw)))
sm.density(x, h.weights=hw)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-30 14:03 , Processed in 0.023709 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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