Learn R Programming

M2SMF (version 2.0)

Cal_NMI: calculate the normalized mutual information.

Description

calculate the normalized mutual information of two vectors x and y.

Usage

Cal_NMI(x, y)

Arguments

x

A vector

y

A vector as long as x

Value

A number between 0 and 1 indicating the normalized mutual information

Examples

Run this code
# NOT RUN {
x <- c(0.1,0.2,0.3,0.4)
y <- c(0.1,0.2,0.3,0.4)
NMI <- Cal_NMI(x,y)
# }

Run the code above in your browser using DataLab