Skip to content

Add a new API to retrieve both nearest indices and distances#16

Open
GiBg1aN wants to merge 1 commit intocrvs:masterfrom
GiBg1aN:master
Open

Add a new API to retrieve both nearest indices and distances#16
GiBg1aN wants to merge 1 commit intocrvs:masterfrom
GiBg1aN:master

Conversation

@GiBg1aN
Copy link

@GiBg1aN GiBg1aN commented Apr 28, 2025

Hello, thank you for your clean and concise implementation of kd-trees which does not rely on bigger libraries.

Sometimes when querying trees it might be useful to retrieve both indices and distances of points like SciPy does.

I added a new API to your implementation starting from your code, but you could also return both a standard, without adding a new primitive (even though this may break compatibility).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant