overlapCoefficient: Overlap coefficient, also known as Szymkiewicz-Simpson...

Description Usage Arguments Value See Also Examples

View source: R/jaccardIndex.R

Description

Overlap coefficient, also known as Szymkiewicz-Simpson coefficient

Usage

1
2
3
overlapCoefficient(x, y, checkUniqueNonNA = FALSE)

overlapDistance(x, y, checkUniqueNonNA = FALSE)

Arguments

x

A vector

y

A vector

checkUniqueNonNA

Logical, if TRUE, x and y are made unique and non-NA

Value

The overlap coefficient

See Also

jaccardIndex

overlapCofficient calculates the overlap coefficient, and overlapDistance is defined by 1-overlapCoefficient.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
myX <- 1:6
myY <- 4:9
overlapCoefficient(myX, myY)

myY2 <- 4:10
overlapCoefficient(myX, myY2)
## compare the result with Jaccard Index
jaccardIndex(myX, myY2)

## overlapDistance
overlapDistance(myX, myY2)

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