% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistics.R
\name{jaccard}
\alias{jaccard}
\title{Jaccard similarity index}
\usage{
jaccard(size_a, size_b, intersection)
}
\arguments{
\item{size_a}{Inclusive size of set A (integer >= 0).}

\item{size_b}{Inclusive size of set B (integer >= 0).}

\item{intersection}{Inclusive intersection size |A intersection B|.}
}
\value{
Numeric in [0, 1].
}
\description{
Computes |A intersection B| / |A union B|. Matches the web tool's convention
of returning 0 when both sets are empty (NaN-safe).
}
\examples{
jaccard(10, 10, 5)
jaccard(0, 0, 0)
}
