Explicitly documents calculateEntropy method