input data Nsample x Nfeatures or a distance matrix
func
custom function that accepts X and a parameter that return a vector of clusterings.
cluster_func <- function(X, param)
rep
number of repeats
param
vector of parameters
method
method for the choice of k at each repeat c("random", "silhouette")
Details
At each repeat, k is selected randomly or based on the best silhouette width from a discrete uniform distribution between range.k[1] and range.k[2].
Then clustering is applied and result is returned.