mesa.ecospatial.calculate_shannon_entropy
- mesa.ecospatial.calculate_shannon_entropy(counts)
Calculate the Shannon entropy of a set of counts.
- Parameters:
counts (numpy.ndarray) – An array of counts.
- Returns:
The Shannon entropy of the counts.
- Return type: