multi_pam_gen {ConsensusClustering} | R Documentation |
Multiple PAM (K-medoids) generation
Description
Multiple PAM (K-medoids) generation
Usage
multi_pam_gen(
X,
rep = 10,
range.k = c(2, 5),
is.distance = FALSE,
method = "random"
)
Arguments
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 |
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 PAM clustering is applied and result is returned.
Value
matrix of clusterings Nsample x Nrepeat
Examples
X = gaussian_clusters()$X
Clusters = multi_pam_gen(X)
[Package ConsensusClustering version 1.5.0 Index]