disco_score: Overall DISCO score

View source: R/disco.R

disco_scoreR Documentation

Overall DISCO score

Description

Returns the mean of the per-sample DISCO scores produced by disco_samples. This is the single-number summary of clustering quality used for model selection and comparison.

Usage

disco_score(X, labels, min_points = 5)

Arguments

X

A numeric matrix (n \times p) or data.frame.

labels

An integer vector of cluster labels (-1 for noise).

min_points

Positive integer; core-distance neighbourhood size. Default is 5.

Value

A single numeric value in [-1, 1].

See Also

disco_samples

Examples

set.seed(42)
X <- matrix(rnorm(100), ncol = 2)
labels <- rep(c(0L, 1L), each = 25)
disco_score(X, labels)

discoCVI documentation built on Oct. 28, 2026, 1:07 a.m.