jaccard_coefficient: jaccard coefficient

View source: R/combine_enrichments.R

jaccard_coefficientR Documentation

jaccard coefficient

Description

calculates similarity of two groups of objects using "jaccard" coefficient, defined as:

Usage

jaccard_coefficient(n1, n2)

Arguments

n1

group 1

n2

group 2

Details

length(intersect(n1, n2)) / min(c(length(n1), length(n2)))

Value

double


MoseleyBioinformaticsLab/categoryCompare2 documentation built on Dec. 18, 2024, 7:29 p.m.