Calculate the bw index
bw(distance, clusters, bw_balance = 1, ind_cluster = FALSE)
Distance or Dis-Similarity Matrix
The clustering to evaluate.
The balance [0, 1] between inner cluster similarity (Compactness) and the similarity between clusters (Separation). A balance value < 1 increases the importance of Compactness, whereas a value > 1 increases the importance of Separation.
If true, the bw value for all individual clusters is returned.
A score that describes how well the clustering fits the data.