R/spatialDistanceMatrix.R
autoK.Rd
Automate cluster number selection using Silhouette Width
autoK(d, hc, max_k)
A dist object.
A hclust object.
The maximal k.
The best k number.
x <- matrix(rnorm(100), nrow = 5) d <- dist(x) hc <- hclust(d) autoK(d, hc)