% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{jaccard_vec}
\alias{jaccard_vec}
\title{Internal: Jaccard similarity for two ID vectors}
\usage{
jaccard_vec(a, b)
}
\arguments{
\item{a, b}{Vectors representing sets.}
}
\value{
Numeric scalar in \eqn{[0,1]} or \code{NA_real_} if undefined.
}
\description{
Computes the Jaccard index \eqn{|A \cap B|/|A \cup B|} on unique values of \code{a}
and \code{b}. Returns \code{NA_real_} if either set is empty (or both are empty),
which is convenient for diagnostics where the overlap is undefined without
discoveries in both sets.
}
\keyword{internal}
