getMI: Calculate Mutual Information Between Two Vectors

View source: R/ComputeMutualInformation.R

getMIR Documentation

Calculate Mutual Information Between Two Vectors

Description

Computes the mutual information (MI) between two numeric vectors using the specified number of bins and spline order.

Usage

getMI(x_1, x_2, bin = NULL, sp_order = NULL)

Arguments

x_1

A numeric vector representing the first variable.

x_2

A numeric vector representing the second variable. Must be the same length as 'x_1'.

bin

An integer specifying the number of bins. Default is NULL.

sp_order

An integer specifying the spline order. Must be less than 'bin'. Default is NULL.

Value

A numeric value representing the mutual information (MI).

Examples

x_1 <- rnorm(100)
x_2 <- rnorm(100)
getMI(x_1, x_2)


conMItion documentation built on May 26, 2026, 5:06 p.m.

Related to getMI in conMItion...