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


rmflight/categoryCompare2 documentation built on Dec. 30, 2024, 3:09 a.m.