ArcGIS Pro offers the Average Nearest Neighbour Distance geoprocessing tool to measure the distance between each feature centroid and its nearest neighbour's centroid location. It then averages all these nearest neighbour distances and provides a report of: Observed Mean Distance, Expected Mean Distance, Nearest Neighbour Index, z-score, and p-value
For more information on how the tool works see below: https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-statistics/h-how-average-nearest-neighbor-distance-spatial-st.htm
I'm curious as to whether any Python modules offer similar functionality? I'd like to be able to incorporate some kind of nearest neighbour analysis in future scripts - in particular, observed mean distance and expected mean distance.
arcpy– fuzzy_raster9873 Apr 29 '22 at 12:03