dunn_score: This function returns the Dunn_score.

View source: R/ClusterStability.R

dunn_scoreR Documentation

This function returns the Dunn_score.

Description

This function returns the Dunn score (also known as the e Dunn index) of a partition .

Usage

dunn_score(X, labels)

Arguments

X

the input dataset: either a matrix or a dataframe.

labels

the partition vector.

Value

The Dunn index score for this data.

References

J. Dunn. Well separated clusters and optimal fuzzy partitions. Journal of Cybernetics, 4:95–104, 1974.

Examples

  dunn_score(iris[1:10,1:4], c(3,2,2,2,3,1,2,3,2,2))
  # Expected : 0.5956834

ClusterStability documentation built on March 31, 2023, 9:40 p.m.