overlap_coefficient: Szymkiewicz-Simpson overlap coefficient

View source: R/statistics.R

overlap_coefficientR Documentation

Szymkiewicz-Simpson overlap coefficient

Description

Computes |A intersection B| / min(|A|, |B|). Useful when one set is much smaller than the other.

Usage

overlap_coefficient(size_a, size_b, intersection)

Arguments

size_a

Inclusive size of set A (integer >= 0).

size_b

Inclusive size of set B (integer >= 0).

intersection

Inclusive intersection size |A intersection B|.

Value

Numeric in [0, 1].

Examples

overlap_coefficient(10, 5, 3)

vennDiagramLab documentation built on May 19, 2026, 1:07 a.m.