Learn R Programming

QuantumClone (version 1.0.0.6)

NMI_cutree: NMI

Description

Computes the NMI based on the clustering

Usage

NMI_cutree(cut_tree, chr)

Arguments

cut_tree

a numeric vector of cluster selection

chr

the ground truth for clusters

Value

numeric value of NMI (between 0 and 1)

Examples

Run this code
# NOT RUN {
set.seed(123)
#1: Cluster data
FQC<-FlashQC(QuantumClone::Input_Example,conta = c(0,0),Nclus = 2:10)

#2: Compute NMI
NMI_cutree(FQC$cluster,chr = QuantumClone::Input_Example[[1]]$Chr)
# }

Run the code above in your browser using DataLab