mutual_info: Calculate the mutual information between two vectors.

Description Usage Arguments Value

View source: R/mutual_info.R

Description

mutual_info calculates the mutual information between two vectors. It is a helper function for muti.

Usage

1
mutual_info(su, normal)

Arguments

su

An n x 2 matrix containing two discrete vectors.

normal

A logical indicator as to whether the mutual information should be normalized to [0,1].

Value

A scalar of class 'numeric' of the (possibly normalized) mutual information.


mdscheuerell/muti documentation built on June 20, 2020, 12:52 p.m.