You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scipy KDTree package provides a method query_pairs(in this link) which returns all the pairs within a distance for the given tree. This package seems only to provide nearest neighbor searching for a given point by the inrange function, rather than for pairs.
Such feature could also be implemented in this Julia package and should be helpful for users.
The text was updated successfully, but these errors were encountered:
I imagine a naive solution might be to loop over all data points and for each data point, call inrange to get a list of nearby data points then append them to a set storing (i, j) index pairs where i < j.
I think you can do better by basically searching and pruning two trees against each other. I think I had an implementation of that but don't recall why I didn't put it in, maybe it didn't improve performance much over the naive version.
The
scipy
KDTree package provides a methodquery_pairs
(in this link) which returns all the pairs within a distance for the given tree. This package seems only to provide nearest neighbor searching for a given point by theinrange
function, rather than for pairs.Such feature could also be implemented in this Julia package and should be helpful for users.
The text was updated successfully, but these errors were encountered: