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 Dec. 18, 2024, 9:13 a.m.