R/entropyMM.R

entropyMM <-
function(cellCounts, unit = unit){
  ans <- entropyML(cellCounts, unit = unit)
  
  n <- sum(cellCounts)
  m <- sum(cellCounts > 0)
  
  ans <- ans + (m - 1)/(2*n)
  return(ans)
}
lucgar/synRNASeqNet documentation built on May 21, 2019, 8:54 a.m.