esda.areal_entropy¶
- esda.areal_entropy(polygons=None, areas=None, local=False, base=2.718281828459045)[source]¶
Compute the entropy of the distribution of polygon areas.
- Parameters:
- polygons: numpy array of geometries
polygons whose distribution of entropies needs to be computed. Should not be provided if areas is provided.
- areas: numpy array
areas to use to compute entropy. SHould not be provided if polygons are provided.
- local: bool (default: False)
whether to return the total entropy of the areal distribution (False), or to return the contribution to entropy made by each of area (True).
- Returns:
Totalmapentropyor (n,)vectoroflocalentropies.