discrete.mi {eHDPrep}R Documentation

Calculate mutual information of a matrix of discrete values

Description

Compute mutual information between all rows of a matrix containing discrete outcomes.

Usage

discrete.mi(mat, progress.bar = FALSE)

Arguments

mat

A matrix of discrete values

progress.bar

Outputs status to terminal when set to 'text', or no status updates are output when set to FALSE.

Details

Note that only the lower triangle of the matrix is populated for speed, as the result is symmetric. Takes a matrix as input.

Value

A lower triangular matrix where element [i,j] contains the mutual information in bits between row i and row j of the input matrix

Author(s)

Alexander Lyulph Robert Lubbock, Ian Overton


[Package eHDPrep version 1.3.3 Index]