calNMI: Calculate the Normalized Mutual Information

Description Usage Arguments Value Examples

View source: R/calNMI.R

Description

Calculate the Normalized Mutual Information of the clustering results.

Usage

1
calNMI(a, b)

Arguments

a

A vector that contains the cluster label of each sample.

b

A vector that contains the true label of each sample.

Value

A real number that means the normalized mutual information between the two clustering results.

Examples

1
2
3
a=c(1,3,2,2,4,6,5)
b=c(3,1,2,5,6,4,3)
calNMI(a,b)

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.