NMI_cutree: NMI

Description Usage Arguments Value Examples

View source: R/validation_tools.R

Description

Computes the NMI based on the clustering

Usage

1
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

1
2
3
4
5
6
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)

QuantumClone documentation built on May 2, 2019, 3:03 a.m.