entropy_disc {NlinTS} | R Documentation |
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
library (NlinTS)
print (entropy_disc (c(3,2,4,4,3)))
[Package NlinTS version 1.4.5 Index]