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

R语言 simba包 dist.tmp()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:29:17 | 显示全部楼层 |阅读模式
dist.tmp(simba)
dist.tmp()所属R语言包:simba

                                         Calculate the distance between the instances or variables of two similar data-sets.
                                         计算的实例或变量的两个类似的数据集之间的距离。

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

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

The function calculates the distance between the instances or variables of two data-sets, preferably two recordings from the same places/variables at different time steps. Could for example be useful to calculate the dissimilarity of species records from the same set of plots at different recording campaigns.
该函数将计算两个数据集,优选两个录制从相同的地方/变量在不同的时间步长之间的情况下,或变量的距离。可以例如是有用的计算的分辨率不同的物种记录在不同的记录运动从同一组的曲线。


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


dist.tmp(x, y, method = "euclidean", margin = 1, adjust=TRUE)



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

参数:x
data.frame with numeric columns giving the data at time one  
data.frame数字列的数据在时间1


参数:y
data.frame with numeric columns giving the data at time two  
data.frame数字时两列的数据,在


参数:method
Which distance measure should be employed? The following measurees  are available: "manhattan", "euclidean", "bray",  "canberra", "kulczynski", "gower", "jaccard".  See details.
应采用距离度量?有以下measurees:"manhattan","euclidean","bray","canberra","kulczynski","gower","jaccard"。查看详细信息。


参数:margin
Shall the distance between the instances (rows, margin = 2), or the distance between the variables (columns, margin = 1) be calculated?  
应的实例(行,margin= 2),或变量之间的距离(列之间的距离,margin= 1)来计算:?


参数:adjust
The default adjust = TRUE takes care of your input data. However, instances and variable names have to be unique, as the matching relies on these names. If your data meets this requirement the function automatically detects which instances and variables can be found in both data-sets and calculates the distance based on these data.  
默认adjust = TRUE照顾您输入的数据。然而,实例和变量名必须是唯一的,作为匹配依赖于这些名称。如果您的数据能够满足这个要求,该功能会自动检测到的实例和变量可以发现在这两个数据集,并根据这些数据计算的距离。


Details

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

The function provides just an alternative to code your repeated measurements from the same plots, calculate the distances between all instcances and sort out the distances between the same instances at different time steps. Here just the latter is calculated directly.
该功能提供了一个替代的代码重复测量同一图,计算距离之间的所有instcances,理清之间的距离相同的情况下,在不同的时间步。这里只是后者直接计算。

For details regarding the different distance coefficients, see vegdist. The formulae behind were taken from there. However, not all choices have been implemented here.
对于不同的距离系数的详细信息,请参阅vegdist。从那里的公式背后。然而,并非所有的选择已经在这里实现。


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

Returns a vector of distances. Length depends on margin. If you choose margin = 1 it equals the number of instances (plots) in your two data-sets. If you choose margin = 2 it equals the number of variables (species) in your data-sets.
返回一个向量的距离。长度取决于上margin。如果您选择margin= 1,等于两个数据集的实例的数量(图)。如果您选择margin= 2,它等于在你的数据集的变量数(种)。


(作者)----------Author(s)----------


Gerald Jurasinski <a href="mailto:gerald.jurasinski@uni-rostock.de">gerald.jurasinski@uni-rostock.de</a>



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

<h3>See Also</h3>

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


data(abis)

##just to see that the function takes care of matching instances [#刚刚看到的功能需要照顾的匹配情况]
##and variables we compare abis.spec with a permuted version of[#和变量,我们比较abis.spec与一个置换版本]
##itself and skip some instances and variables in the original matrix.[#本身并跳过某些情况下,在原来的矩阵变量。]
dist.tmp(abis.spec[5:50,3:120], apply(abis.spec, 2, sample), method="bray")


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 20:09 , Processed in 0.021115 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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