R/compute_entropy.R

'compute_entropy' <- function(probs)
{
  return(invisible(-sum(probs*log2(probs),na.rm=TRUE)))
}
ndbrown6/MSK-GRAIL-TECHVAL documentation built on March 29, 2020, 4:41 p.m.