entropy_disc: Discrete Entropy

entropy_discR Documentation

Discrete Entropy

Description

Discrete Entropy

Usage

entropy_disc(V, log = "log2")

Arguments

V

Integer vector.

log

A string specifying the logarithm base for entropy calculation: "log2" (default), "loge", or "log10".

Details

Computes the Shanon entropy of an integer vector.

Examples

library (NlinTS)
print (entropy_disc (c(3,2,4,4,3)))

NlinTS documentation built on March 23, 2026, 5:07 p.m.