aDist(robCompositions)
aDist()所属R语言包:robCompositions
Aitchison distance
艾奇逊距离
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the Aitchison distance between two observations or between two data sets.
计算的艾吉森的两次观测之间或两个数据集之间的距离。
用法----------Usage----------
aDist(x, y)
参数----------Arguments----------
参数:x
a vector, matrix or data.frame
一个向量,矩阵或数据框
参数:y
a vector, matrix or data.frame with equal dimension as x
等维的向量,矩阵或数据框,与x
Details
详细信息----------Details----------
This distance measure accounts for the relative scale property of the Aitchison distance. It measures the distance between two compositions if x and y are vectors and evaluate sum of the distances between x and y for each row of x and y if x and y are matrices or data frames.
这个距离测量的相对规模占财产的艾奇逊距离。它可以测量两种成分之间的距离,如果x和y是向量和评估x和y的每一行x和之间的距离的总和y如果x和y是矩阵或数据框。
It is not designed to apply it on one matrix, such as function "acomp()" in package "compositions", but it is designed to compare different matrices.
它的目的不是将其应用于一个矩阵,如函数的ACOMP()包成分,但它的目的是比较不同的矩阵。
The underlying code is written in C and allows a fast computation also for large data sets.
底层代码是用C写的,也可以快速计算的大型数据集。
值----------Value----------
The Aitchison distance between two compositions or between two data sets.
艾奇逊两种组合物之间或两个数据集之间的距离。
(作者)----------Author(s)----------
Matthias Templ
参考文献----------References----------
Data Monographs on Statistics and Applied Probability. Chapman and Hall Ltd., London (UK). 416p.
compositional distance. Mathematical Geology, 32, 271-275.
Computational Statistics and Data Analysis, vol 54 (12), pages 3095-3107.
参见----------See Also----------
ilr
ilr
实例----------Examples----------
data(expenditures)
x <- xOrig <- expenditures
## Aitchison distance between the first 2 observations:[#艾奇逊的第2个观察值之间的距离:]
aDist(x[,1], x[,2])
## set some missing values:[#设置一些失踪的值:]
x[1,3] <- x[3,5] <- x[2,4] <- x[5,3] <- x[8,3] <- NA
## impute them:[#归咎于他们:]
xImp <- impCoda(x, method="ltsReg")$xImp
## calculate the relative Aitchsion distance between xOrig and xImp:[#计算的的相对Aitchsion之间的距离xOrig和xImp的:]
aDist(xOrig, xImp)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|