clusterRange {MOMA} | R Documentation |
This function generate an cluster structure with 'k' groups and computes the cluster reliability score where 'k' is a range of values
clusterRange( dis, range = c(2, 100), step = 1, cores = 1, method = c("pam", "kmeans"), data = NULL )
dis |
Distance object |
range |
vector with start and end 'k' |
step |
Integer indicating the incremental number of clusters to add in each iteration |
cores |
Maximum number of CPU cores to use |
method |
Either 'pam' k-mediods or kmeans. Must supply the original data matrix if using kmeans |
data |
Original data matrix |
list of cluster reliability scores by 'k', 'clustering' (the vector solution) and 'reliability' as well as 'medoids' labels