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

R语言 spe包 sample.max.distance()函数中文帮助文档(中英文对照)

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

                                        Samples the distances in the input dimensions to get the maximum distance
                                         样片在输入尺寸的距离,以获得最大的距离

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

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

The maxmium distance in the input dimensions is required to generate a value of the neighborhood radius. For datasets with >1000 observations an all pairs calculation is prohibitive. Instead probability sampling is used so that two points are randomly chosen and their distance is calculated. This is repeated for a user specified number of times and the maximum distance obtained is kept track of and returned at the end.
在输入尺寸的距离的maxmium需要生成一个周边的半径值。 > 1000个观测数据集,所有对计算是行不通的。相反概率抽样是用来使两个点是随机选择的,和它们之间的距离来计算。这是重复的次数为用户指定的,并得到的最大距离被保持跟踪的末尾返回。


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


sample.max.distance( coord,
                     nobs = 0, ndim = 0,
                     samplesize = 1e6)



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

参数:coord
The input data in matrix form. If present in a data.frame it will be coerced to a matrix
矩阵形式中的输入数据。如果数据框将被强制转换为矩阵


参数:nobs
The number of observations (rows of the input matrix should be the same as the rows of the embedding matrix) If it is not specified nobs will be taken as nrow(coord)
观测值的个数(应该是相同的为包埋矩阵的行的输入矩阵的行),如果未指定诺布斯将作为NROW采取(经纬度)


参数:ndim
The number of input dimensions. If not specified it will be taken as ncol(coord)
输入尺寸的数量。如果没有指定,将被视为NCOL(经纬度)


参数:samplesize
The number of iterations for probability sampling. For a dataset of 6070 observations there will be 6070x6069/2 pairwise distances. The default value gives a close approximation and runs fast. If you want a better approximation 1e7 is a good value. YMMV
迭代概率抽样的数量。对于6070的观测数据集会有6070x6069 / 2成对距离。从预设值非常接近,运行速度快。如果你想要一个更好的近似1E7是一个很好的价值。 YMMV


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

Returns the value of the maxmium distance found as a single number
返回值作为一个单一的数字的maxmium距离


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

spe
SPE

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 16:29 , Processed in 0.032305 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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