entropy

fun entropy(probabilities: List<Long>): Long(source)

-sum p log2 p over probabilities (micro-units); zero masses add nothing.