generate_method_prtrb {ConsensusClustering} | R Documentation |
Multiple method generation
Description
Multiple method generation
Usage
generate_method_prtrb(
X,
cluster.method = "pam",
range.k = c(2, 5),
sample.k.method = "random",
rep = 10,
distance.method = "euclidian",
func
)
Arguments
X |
input data Nsample x Nfeatures |
cluster.method |
base clustering method: |
range.k |
vector of minimum and maximum values for k |
sample.k.method |
method for the choice of k at each repeat |
rep |
number of repeats |
distance.method |
method for distance calculation:
|
func |
user-definrd function required if |
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.
Value
matrix of clusterings Nsample x Nrepeat
Examples
X = gaussian_clusters()$X
Clusters = generate_method_prtrb(X)
[Package ConsensusClustering version 1.5.0 Index]