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

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

[复制链接]
发表于 2012-2-25 21:01:15 | 显示全部楼层 |阅读模式
clust2Mat(GraphAT)
clust2Mat()所属R语言包:GraphAT

                                        Function to compute adjacency matrix of cluster graph given a vector of cluster memberships
                                         函数来计算聚类图的邻接矩阵给出一个聚类成员的向量

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

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

Given a list of cluster memberships, this function computes the adjacency matrix for the associated cluster graph.  The adjacency matrix is a matrix whose rows and columns are the nodes of the cluster graph and whose entries are 0's or 1's.  A 1 entry indicates that the corresponding nodes are connected, and a 0 indocates that they are not.  
由于聚类成员名单,这个函数计算相关的聚类图的邻接矩阵。邻接矩阵是一个矩阵的行和列的聚类图的节点和其作品的0或1的。 1项,表明相应的节点连接,和他们不是一个0 indocates。


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


clust2Mat(memb)



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

参数:memb
A numeric vector, with each entry representing a node, the entry's value being the number of the cluster to which that node belongs. </table>
一个数值向量,每个条目都代表一个节点,数字聚类的条目的值,该节点属于。 </ TABLE>


Details

详情----------Details----------

Given a vector of cluster membership numbers, where the number of entries is the number of nodes n, the function computes an nxn &ldquo;adjacency matrix&rdquo; for the corresponding cluster graph.  The cluster graph is the graph in which two nodes are connected by an edge if and only if they are members of the same cluster.  The adjacency matrix for the graph has rows and columns representing the nodes, in the same order as the input vector.  The (i,j) entry is 1 if and only if node i and node j are in the same cluster.  Otherwise, the entry is 0.  By convention, diagonal entries are 0.  
鉴于一个聚类成员身份号码的向量,其中的条目数是节点列印数量,功能计算NXN为相应的聚类图“邻接矩阵”。聚类图是在这两个节点的连通图边,当且仅当它们是相同的聚类成员。图的邻接矩阵的行和列表示节点,在相同的顺序作为输入向量。 (I,J)项是1,当且仅当节点i和节点j在同一聚类。否则,该项目为0。按照惯例,对角线项均为0。


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

An nxn adjacency matrix for the cluster graph, where n=length of cluster membership input vector memb.
一个nxn的邻接矩阵,聚类图,其中n =聚类成员输入向量MEMB的长度。


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


Tom LaFramboise <a href="mailto:tlaframb@hsph.harvard.edu">tlaframb@hsph.harvard.edu</a>



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

makeClustM
makeClustM


举例----------Examples----------


memberships<-c(1,2,3,1,2,3,1,2,3,4)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 21:17 , Processed in 0.028526 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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