majority_voting: Consensus mechanism based on majority voting

View source: R/basic_functions.R

majority_votingR Documentation

Consensus mechanism based on majority voting

Description

Consensus mechanism based on majority voting

Usage

majority_voting(X)

Arguments

X

clustering matrix of Nsamples x Nclusterings. Zero elements are are considered as unclustered samples

Details

Perform majority voting as a consensus mechanism.

Value

the vector of consensus clustering result

Examples

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))


ConsensusClustering documentation built on Sept. 11, 2024, 6:38 p.m.