calinski_harabasz_score {ClusterStability}R Documentation

This function returns the Calinski Harabasz score.

Description

This function returns the Calinski Harabasz score of a partition (also known as the Variance Ratio Criterion).

Usage

calinski_harabasz_score(X, labels)

Arguments

X

the input dataset: either a matrix or a dataframe.

labels

the partition vector.

Value

The Calinski Harabasz score for this data.

References

T. Calinski and J. Harabasz. A dendrite method for cluster analysis. Communications in Statistics, 3, no. 1:1–27, 1974

Examples

  calinski_harabasz_score(iris[1:10,1:4], c(3,2,2,2,3,1,2,3,2,2))
  # Expected : 11.34223

[Package ClusterStability version 1.0.4 Index]