Make an adjacency matrix for a cluster graph
为聚类图的邻接矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function takes a vector of cluster sizes and returns an adjacency matrix for a graph in which edges connect nodes if they are members of the same cluster.
这个函数接受一个簇大小的向量,并返回一个图中的边缘节点连接,如果他们是相同的聚类成员的邻接矩阵。
用法----------Usage----------
makeClustM(nvec)
参数----------Arguments----------
参数:nvec
A vector of cluster sizes
簇大小的向量
值----------Value----------
A square adjacency matrix with the number of rows and columns equal to the sum of nvec. An entry of "1" in the ith row and jth column indicates that node i and node j are members of the same cluster. All other entries are "0".
一个平方米的邻接矩阵的行和列的数目等于总和nvec的。 “1”中的第i行第j列的一个条目表示节点i和节点j是相同的聚类成员。所有其他项目均为“0”。