% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/disco.R
\name{disco_score}
\alias{disco_score}
\title{Overall DISCO score}
\usage{
disco_score(X, labels, min_points = 5)
}
\arguments{
\item{X}{A numeric matrix (\eqn{n \times p}) or \code{data.frame}.}

\item{labels}{An integer vector of cluster labels (\code{-1} for noise).}

\item{min_points}{Positive integer; core-distance neighbourhood size.
Default is \code{5}.}
}
\value{
A single numeric value in \eqn{[-1, 1]}.
}
\description{
Returns the mean of the per-sample DISCO scores produced by
\code{\link{disco_samples}}.  This is the single-number summary of
clustering quality used for model selection and comparison.
}
\examples{
set.seed(42)
X <- matrix(rnorm(100), ncol = 2)
labels <- rep(c(0L, 1L), each = 25)
disco_score(X, labels)
}
\seealso{
\code{\link{disco_samples}}
}
