#' entropy.h
#'
#' H(X)
#' @param X
#' @keywords entropy
#' @export
#' @examples
#' entropy.h()
entropy.h<-function(X) {
Pi<-entropy.Pi(X)
h_tmp<--Pi*log(Pi)/log(2)
h<-sum(h_tmp)
return(h)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.