Closed Tortar closed 4 weeks ago
This fixes also #1043
Actually there is still something to take care because sometimes we pass nearby_ids_exact
to some other functions
If tests pass, it should be okay now
I wonder if we can increase the performance of the nearest_neighbor
function... We go thourhg all agents in the list.
On the other hand, we do near searches fundamentally differently from e.g., a tree structure, so it's not like we would ever have nearby agents sorted by distance. Anyways, merging and tagging.
I think it can be quite improved by the user, because decreasing the radius implies searching less neighbors, but it is model dependent, one can try little radius before big ones
This makes the API cleaner