| num_clusters_all | R Documentation |
The number of cluster which could be recommender according the method threshold.
num_clusters_all(obj)
obj |
the output of |
an array of number of clusters that could be recommended.
Daniel Rodriguez
num_clusters, get_f_k
# Create a data set with two clusters
dat <- matrix(c(rnorm(100, 2, .1), rnorm(100, 3, .1),
rnorm(100, -2, .1), rnorm(100, -3, .1)), 200, 2)
# Get the optimal number of clustes
sol <- kselection(dat)
k <- num_clusters(sol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.