I'm carrying out nearest neighbor analysis on a set of geological features in QGIS, trying to find out whether they're clustered or not. I've calculated the nearest neighbor distances using the 'Distance Matrix' tool and I'm now exploring the 'Nearest Neighbor Analysis' tool.
Does anyone out there know what the algorithms behind the NN Analysis tool are? What method does it use to generate its expected distance and NN index (comparison with Poisson points?)? How does it measure the area? e.g. does it use minimum convex hull or minimum bounding rectangle?
I became a bit suspicious when I tried the tool on a set of randomly generated points, it returned NN index values of 0.81 and a Z-score of -2.5, indicating clustering in what should be randomly distributed points.
Can anyone shed any light on this? I've tried to find more information in the QGIS documentation, but there's not information about the algorithms that are used to calculate these values.