View source: R/basic_functions.R
majority_voting | R Documentation |
Consensus mechanism based on majority voting
majority_voting(X)
X |
clustering matrix of Nsamples x Nclusterings. Zero elements are are considered as unclustered samples |
Perform majority voting as a consensus mechanism.
the vector of consensus clustering result
X = gaussian_clusters()$X
x1 = kmeans(X, 5)$cluster
x2 = kmeans(X, 5)$cluster
x3 = kmeans(X, 5)$cluster
clusters = majority_voting(cbind(x1,x2,x3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.