Empirical entropy
Empirical entropy.
empirical.entropy(x, k = NULL, pretty = FALSE)
x |
A numerical vector with continuous values. |
k |
If you want to cut the data into a specific range plug it here, otherwise this decide based upon the Freedman-Diaconis' rule. |
pretty |
Should the breaks be equally space upon the range of x? If yes, let this FALSE. If this is TRUE, the breaks are decided using the base command pretty. |
The function computes the empirical entropy.
The estimated empirical entropy.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>.
Freedman David and Diaconis P. (1981). On the histogram as a density estimator: L2 theory. Zeitschrift fur Wahrscheinlichkeitstheorie und Verwandte Gebiete. 57(4): 453-476.
x <- rnorm(100) empirical.entropy(x) empirical.entropy(x, pretty = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.