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

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

[复制链接]
发表于 2012-2-26 13:56:04 | 显示全部楼层 |阅读模式
JaccardCoef(ScISI)
JaccardCoef()所属R语言包:ScISI

                                        A function to calculate the Jaccard similarity index between two sets
                                         一个函数来计算两个集合之间的Jaccard相似性指数

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

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

The JaccardCoef function takes the return values of compareComplex function and calculates, for each pair of complexes C-i and K-j (where C-i is in first bipartite graph matrix and K-j is second), the similarity coefficient of Jaccard.
JaccardCoef功能需要compareComplex函数的返回值,并计算,每个对配合物的词和KJ(CI是在第一个二分图矩阵和KJ是第二),Jaccard相似系数。


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


JaccardCoef(dataMat)



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

参数:dataMat
A list which is the output from compareComplex, which is a list of three matrices: intersect, cminusk, and kminusc which are explained in the details.
一个列表,这是从compareComplex,这是三个矩阵列表输出:相交,cminusk,并解释说这是在细节的kminusc。


Details

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

The argument of this function is a list of three matrices all of whom are indexed exactly in the same manner - the rows of each of the matrix is indexed by the complexes, {C-i}, of the first bipartite graph, bg1, and the colunms are indexed by the complexes, {K-j} of the second bipartite graph, bg2.
这个函数的参数的三个矩阵所有的人以同样的方式在索引完全列表 - 每个矩阵的行索引的第一个二分图,BG1,和的colunms的配合物,{CI},索引的复合体,第二二部图,BG2 {KJ}。

The first matrix of the list is the intersect matrix, I. The (i,j) entry of I is the cardinality of complex C-i of bg1 and K-j of bg2.
列表的第一个矩阵是交叉矩阵,一,(I,J)进入我是复杂的词,BG1,BG2和KJ的基数。

The second matrix of the list is the cminusk matrix, Q. The (i,j) entry of Q is the cardinality of the set difference between C-i and K-j.
列表中的第二个的矩阵是cminusk的矩阵,问的Q(I,J)项基数词和KJ之间的差集。

The third matrix of the list is the kminusc matrix, P. The (i,j) entry of P is the cardinality of the set difference between K-j and C-i.
列表的第三个矩阵P的(I,J)项的P kminusc矩阵,是KJ与词之间的差集的基数。

The Jaccard Coefficient between two sets (here between two complexes) C-i and K-j is given by the quotient of cardinality(C-i intersect K-j) and cardinality(C-i union K-j). Note that cardinality(C-i intersect K-j) is the (i,j) entry of I, and that cardinality(C-i union K-j) is the sum of the (i,j) entry of I, Q, P.
两套(这里是两个配合之间)词和KJ之间的Jaccard系数基数商(CI相交KJ)和基数(CI工会KJ)。需要注意的是基数(CI相交KJ)是我(I,J)项,基数(CI工会KJ)的I(I,J)项,问,体育的总和


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

The return value is a matrix consisting of the Jaccaard coefficient for each pair of complexes C-i and K-j with rows in indexed by C-i and columns indexed by K-j.
返回值是由词和由KJ索引的列索引的行对每个词的复合物和KJ Jaccaard系数组成的矩阵。


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


Tony Chiang



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


#go = getGOInfo(wantAllComplexes=FALSE)[去= getGOInfo(wantAllComplexes = FALSE时)]
#mips = getMipsInfo(wantSubComplexes=FALSE)[MIPS = getMipsInfo(wantSubComplexes = FALSE时)]
#goM = createGOMatrix(go)[GOM = createGOMatrix(去)]
#mipsM = createMipsMatrix(mips)[mipsM = createMipsMatrix(MIPS)]
#cc = runCompareComplex(mipsM, goM, byWhich = "ROW")[CC = runCompareComplex(mipsM,GOM,byWhich =“列”)]
#cc$simInd[CC $ simInd]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 13:13 , Processed in 0.026707 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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