entropy_disc: Discrete Entropy

Description Usage Arguments Details Examples

Description

Discrete Entropy

Usage

1
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

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

Example output

Loading required package: Rcpp
[1] 1.521928

NlinTS documentation built on Feb. 2, 2021, 9:07 a.m.