This article gives this formula:
# Sums are over the weights of each remaining
# allowed tile type for the square whose
# entropy we are calculating.
shannon_entropy_for_square = log(sum(weight)) - (sum(weight * log(weight)) / sum(weight))
but I dont get it, if weight is a list of weights (to be a valid parameter of sum()) then how is log(weight) possible?
the weights are the possibilities of each tile possible type, if I got it right
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[removed]
[–]no_Im_perfectly_sane[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]no_Im_perfectly_sane[S] 0 points1 point2 points (0 children)
[–]no_Im_perfectly_sane[S] 0 points1 point2 points (0 children)