inst/examples/R/data/univariate/entropy/example_entropy.R

data(Boston, package="MASS")
library("entropy")
ftab <- table(Boston[,9])
entropy(ftab)               # estimates the entropy from data
entropy(ftab)/length(ftab)  # estimates the normalized entropy from data
sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.