Nothing
#######################################################################
##
## Function: entropy helpers
## Author : Jonathan Wand <wand(at)stanford.edu>
## http://wand.stanford.edu
##
#######################################################################
entropy.max <- function(n.cat) {
p <- rep(1/n.cat,n.cat)
return( -sum( p*log(p)))
}
entropy.calc <- function(p) {
p <- p[ p > 0]
-sum(p*log(p))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.