R/int_get_binary_entropy.R

Defines functions H2

get_binary_entropy <- H2 <- function(p) {
  binary_entropy <- sapply(p, function(p) { get_entropy(c(p, 1-p)) } )
  binary_entropy
}

Try the statConfR package in your browser

Any scripts or data that you put into this service are public.

statConfR documentation built on April 3, 2025, 5:35 p.m.