overlap_coefficient: overlap coefficient

View source: R/combine_enrichments.R

overlap_coefficientR Documentation

overlap coefficient

Description

calculates the similarity using the "overlap" coefficient, which is

Usage

overlap_coefficient(n1, n2)

Arguments

n1

group 1 of objects

n2

group 2 of objects

Details

length(intersect(n1, n2)) / length(union(n1, n2))

Value

double


rmflight/categoryCompare2 documentation built on May 5, 2024, 1:22 p.m.