R/GeneTonic-extras.R
overlap_coefficient.Rd
Calculate similarity coefficient between two sets, based on the overlap
overlap_coefficient(x, y)
Character vector, corresponding to set 1
Character vector, set 2
A numeric value between 0 and 1
https://en.wikipedia.org/wiki/Overlap_coefficient
a <- seq(1, 21, 2) b <- seq(1, 11, 2) overlap_coefficient(a, b) #> [1] 1