View source: R/CC_without_robScore_functions.R
multi_pam_gen | R Documentation |
Multiple PAM (K-medoids) generation
multi_pam_gen(
X,
rep = 10,
range.k = c(2, 5),
is.distance = FALSE,
method = "random"
)
X |
input data Nsample x Nfeatures or distance matrix. |
rep |
number of repeats |
range.k |
vector of minimum and maximum values for k |
is.distance |
binary balue indicating if the input |
method |
method for the choice of k at each repeat |
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 PAM clustering is applied and result is returned.
matrix of clusterings Nsample x Nrepeat
X = gaussian_clusters()$X
Clusters = multi_pam_gen(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.