View source: R/ClusterStability.R
davies_bouldin_score | R Documentation |
This function returns the Davies Bouldin score of a partition.
davies_bouldin_score(X, labels)
X |
the input dataset: either a matrix or a dataframe. |
labels |
the partition vector. |
The Davies Bouldin score for this data.
D. L. Davies and D. W. Bouldin. A cluster separation measure. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-1, no. 2:224-227, 1979
davies_bouldin_score(iris[1:10,1:4], c(3,2,2,2,3,1,2,3,2,2))
# Expected : 0.5103277
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.