JaccardCoef {simulatorAPMS}R Documentation

Function to calculate the Jaccard Coefficient

Description

The JaccardCoef function takes the return values of compareComplexes function and calculates, for each pair of complexes C-i and K-j (where C is in ISI and K is in estimate), the similarity coefficient of Jaccard.

Usage

JaccardCoef(dataMat)

Arguments

dataMat dataMat is the return value from compareComplex, a list of consisting of three matrices: intersection C-i and K-j, set difference C-i K-j, and set difference K-j C-i

Details

See above

Value

The return value, SimilarityMat, 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.

Author(s)

Tony Chiang

Examples


library(simulatorAPMS)
data(simEX)
data(APComEX)
komp = runCompareComplex(simEX, APComEX)
JaccardCoef(komp)


[Package simulatorAPMS version 1.2.1 Index]