Skip to main content

Hi,

I need to find the average distance of 25 nearest neighbours in a point layer. I have tried with Neighborfinder set to 25 number of neighbours to find and generate a list, then a ListExploder to expose the list, but I don't know how to group the 25 neighbours to calculate the average distance of these 25 neighbours to the base point

 

Im gettin this of ListExploder: idRecord it’s the ID of points.

Any ideas for grouping the 25 neighbours to calculate the average distance?

Thanks you all.

Instead of exploding the list, use a ListSummer to summarize the distances, and divide the sum by the number of candidates (use a ListElementCounter to verify the number of candidates, or simply use 25).

 


Instead of exploding the list, use a ListSummer to summarize the distances, and divide the sum by the number of candidates (use a ListElementCounter to verify the number of candidates, or simply use 25).

 

 

Thanks ​@geomancer, it’s works!


You're welcome, thanks for the feedback and the 'Best Answer’!