momepy.
simpson_diversity
Calculates the Simpson’s diversity index of data. Helper function for momepy.Simpson.
momepy.Simpson
Formula adapted from https://gist.github.com/martinjc/f227b447791df8c90568.
GeoDataFrame containing morphological tessellation
array of top edges of classification bins. Result of binnng.bins.
treat values as categories (will not use bins)
bins
list of categories
Simpson’s diversity index
See also
Calculates the Simpson’s diversity index of values within neighbours