View source: R/empirical.entropy.R
Empirical entropy | R Documentation |
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.
https://en.wikipedia.org/wiki/Entropy_estimation
https://en.wikipedia.org/wiki/Histogram
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.
Quantile, pretty
x <- rnorm(100)
empirical.entropy(x)
empirical.entropy(x, pretty = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.