Learn R Programming

NlinTS (version 1.4.5)

entropy_disc: Discrete Entropy

Description

Discrete Entropy

Usage

entropy_disc(V, log = "log2")

Arguments

V

Integer vector.

log

String argument in the set ("log2", "loge","log10"), which indicates the log function to use. The log2 is used by default.

Details

Computes the Shanon entropy of an integer vector.

Examples

Run this code
# NOT RUN {
library (NlinTS)
print (entropy_disc (c(3,2,4,4,3)))
# }

Run the code above in your browser using DataLab