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

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

[复制链接]
发表于 2012-9-30 14:45:27 | 显示全部楼层 |阅读模式
ssw(spdep)
ssw()所属R语言包:spdep

                                        Compute the sum of dissimilarity
                                         相异计算总和

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

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

This function computes the sum of dissimilarity between each  observation and the mean (scalar of vector) of the observations.
该函数计算每个观测值的平均值(矢量的标量)的观测之间的相异度的总和。


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


ssw(data, id, method = c("euclidean", "maximum",
    "manhattan", "canberra", "binary", "minkowski",
    "mahalanobis"), p = 2, cov, inverted = FALSE)



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

参数:data
A matrix with observations in the nodes.
一个矩阵,观测节点。


参数:id
Node index to compute the cost
节点的索引来计算成本


参数:method
Character or function to declare distance method. If method is character, method must be "mahalanobis" or "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowisk". If method is one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowisk", see dist for details, because this function as used to compute the distance. If method="mahalanobis", the mahalanobis distance is computed between neighbour areas. If method is a function, this function is used to compute the distance.
字符或函数的声明距离的方法。如果method是字符,方法必须是“马氏”或“欧氏”,“最大”,“曼哈顿”,“堪培拉”,“二”或“minkowisk”。如果method是一个“欧几里得”,“最大”,“曼哈顿”,“堪培拉”,“二”或“minkowisk”,dist的详细信息,因为这充当用于计算距离。如果method="mahalanobis",邻区之间的马氏距离计算。如果method是function,这个函数是用来计算距离。


参数:p
The power of the Minkowski distance.
闵可夫斯基距离的力量。


参数:cov
The covariance matrix used to compute the mahalanobis  distance.
的协方差矩阵来计算马哈拉诺比斯距离。


参数:inverted
logical.  If 'TRUE', 'cov' is supposed to contain the inverse of the covariance matrix.
逻辑。如果“TRUE”,覆盖应该包含的协方差矩阵的逆。


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

A numeric, the sum of dissimilarity between the observations  id of data and the mean (scalar of vector) of  this observations.
甲数值,观测值之间的相异度的总和iddata和的平均值(矢量的标量)在此观测。


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


Elias T. Krainski and Renato M. Assuncao



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

See Also as nbcost
此外,nbcost


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


data(USArrests)
n <- nrow(USArrests)
ssw(USArrests, 1:n)
ssw(USArrests, 1n/2))
ssw(USArrests, (n/2+1):n)
ssw(USArrests, 1n/2)) + ssw(USArrests, (n/2+1):n)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 06:16 , Processed in 0.023635 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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