MI: Compute the mutual information of two discrete samples

View source: R/tools_misc.R

MIR Documentation

Compute the mutual information of two discrete samples

Description

Compute the mutual information of two discrete samples

Usage

MI(cl1, cl2)

Arguments

cl1

vector of discrete labels

cl2

vector of discrete labels

Value

the mutual information between the two discrete samples

Examples

cl1 <- sample(2, 500, replace = TRUE)
cl2 <- sample(2, 500, replace = TRUE)
MI(cl1, cl2)

comeetie/greed documentation built on Oct. 10, 2022, 5:37 p.m.