View source: R/ClusterCalinskiHarabaszIndex.R
| ClusterCalinskiHarabaszIndex | R Documentation |
Calinski-Harabasz Variance-Ratio Criterion [Calinski/Harabasz, 1974] evaluates a hard partition without a reference classification. Variance-ratio criterion; larger values are better.
ClusterCalinskiHarabaszIndex(Cls, Data)
Cls |
Vector of length n containing arbitrary numeric, character, or factor cluster labels. Missing labels and non-finite numeric labels are not allowed. Rows and labels are matched by position. Zero is an ordinary cluster label; remove noise observations explicitly if they should not be evaluated. |
Data |
Finite numeric matrix or data frame with n observations in rows and d variables in columns. Feature data are required, not precomputed dissimilarities. Euclidean geometry and arithmetic centroids are used. Data are not standardized automatically. |
ClusterCalinskiHarabaszIndex calculates
CH = \frac{B/(k-1)}{W/(n-k)},
where W is the sum of squared distances to assigned cluster centroids and B
is the sum of squared distances from cluster centroids to the global mean,
weighted by cluster size. It requires 2 \leq k < n.
Malformed inputs cause an error. Invalid partitions or zero within-cluster dispersion produce a warning. Undefined values are returned as NaN; zero within-cluster dispersion with a positive numerator gives Inf.
This function is also called by ClusterNoEstimation.
The standalone function evaluates one given partition without selecting a
number of clusters.
List of
CalinskiHarabaszIndex |
Variance-ratio criterion; larger values are better. |
Object |
List of |
Michael Thrun
[Calinski/Harabasz, 1974] Calinski, T., & Harabasz, J.: A dendrite method for cluster analysis, Communications in Statistics, Vol. 3(1), pp. 1-27, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/03610927408827101")}, 1974.
ClusterNoEstimation,
ClusterDunnIndex,
ClusterDaviesBouldinIndex
Data = matrix(c(0, 1, 2, 10, 11, 12), ncol = 1)
Cls = rep(c(10, 20), each = 3)
V = ClusterCalinskiHarabaszIndex(Cls, Data)
V$CalinskiHarabaszIndex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.