Average Nearest Neighbor Analysis