Difference between momepy.Shannon and momepy.shannon_diversity #381
-
Hello, Could you let me know difference between momepy.Shannon and momepy.shannon_diversity more clearly? Sincerely, Chang-Deok Kang |
Beta Was this translation helpful? Give feedback.
Answered by
martinfleis
Sep 7, 2022
Replies: 1 comment 1 reply
-
Hello, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jGaboardi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
shannon_diversity
is just a formula giving a scalar (single) value of Shannon diversity as an output.Shannon
loops over your geometries and measures Shannon diversity of a given column within a local neighbourhood of each geometry as is defined in a binary spatial weights matrix.shannon_diversity
is therefore called withinShannon
. We just exposed it as well as it may be useful to access it directly.