Learn R Programming

greed (version 0.6.1)

NMI: Compute the normalized mutual information of two discrete samples

Description

Compute the normalized mutual information of two discrete samples

Usage

NMI(cl1, cl2)

Value

the normalized mutual information between the two discrete samples

Arguments

cl1

vector of discrete labels

cl2

vector of discrete labels

Examples

Run this code
cl1 <- sample(2, 500, replace = TRUE)
cl2 <- sample(2, 500, replace = TRUE)
NMI(cl1, cl2)

Run the code above in your browser using DataLab