Learn R Programming

conMItion (version 0.2.1)

getEntropyTri: Calculate Joint Entropy for Three Variables

Description

Computes the joint entropy of three numeric vectors using the specified number of bins and spline order.

Usage

getEntropyTri(x_1, x_2, x_3, bin = 6, sp_order = 2)

Value

A numeric value representing the joint entropy of the three vectors.

Arguments

x_1

A numeric vector for the first variable.

x_2

A numeric vector for the second variable. Must be the same length as `x_1`.

x_3

A numeric vector for the third variable. Must be the same length as `x_1`.

bin

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

sp_order

An integer specifying the spline order. Must be less than `bin`. Default is 2.

Examples

Run this code
x_1 <- rnorm(100)
x_2 <- rnorm(100)
x_3 <- rnorm(100)
getEntropyTri(x_1, x_2, x_3)

Run the code above in your browser using DataLab