esda.homogeneity

esda.homogeneity(a, b, local=False, base=2.718281828459045)[source]

The homogeneity of polygons from a partitioned by b.

From []

This is equal to completeness(b,a).

It is closer to 1 when all polygons in b correspond well to polygons in a.

Parameters:
ageometry array of polygons

array of polygons

bgeometry array of polygons

array of polygons

local: bool (default: False)

whether or not to provide local scores for each polygon. If True, the homogeneity for polygons in b are returned.

scale: bool (default: None)

whether to scale the completeness score(s). By default, completeness is is scaled for local scores so that the average of the local scores is the overall map completeness. If not local, then completeness is returned unscaled. You can also set local=True and scale=False to get raw components of the completeness, whose sum is the completeness for the entire map. Global re-scaled scores (local=False & scale=True) are not supported.

base: bool (default=None)

what base to use for the entropy calculations. The default is base e, which means entropy is measured in “nats.”