Nothing
entropyShrink <-
function(cellCounts, unit = unit,
shrinkageTarget = shrinkageTarget){
hatTheta <- thetaShrink(cellCounts, shrinkageTarget = shrinkageTarget)
hatTheta <- hatTheta[hatTheta != 0]
if(unit == "bit") logHatTheta <- log2(hatTheta) else
if(unit == "ban") logHatTheta <- log10(hatTheta) else
if(unit == "nat") logHatTheta <- log(hatTheta)
ans <- - sum(hatTheta*logHatTheta)
return(ans)
}
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.