columnOverlapCoefficient: Pairwise jaccard/overlap coefficient can be calculated...

Description Usage Arguments Value Examples

View source: R/jaccardIndex.R

Description

Pairwise jaccard/overlap coefficient can be calculated efficiently using matrix Pairwise overlap coefficient of binary matrix by column

Usage

1

Arguments

x

An integer matrix, other objects will be coereced into a matrix

y

An integer matrix, other objects will be coereced into a matrix. In case of NULL, pairwise overlap coefficients by column of x is returned.

Value

A matrix of column-wise pairwise overlap coefficients of the binary matrix. NaN is reported when neither of the columns have any non-zero element.

Examples

1
2
3
4
5
6
7
set.seed(1887)
testMatrix1 <- matrix(rbinom(120, 1, 0.2), nrow=15)
columnOverlapCoefficient(testMatrix1)

testMatrix2 <- matrix(rbinom(150, 1, 0.2), nrow=15)
testMatrix12Poe <- columnOverlapCoefficient(testMatrix1, 
  testMatrix2)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.