k-neighbor and radius search with CAPT #28
Replies: 4 comments
-
As currently implemented, no, there is no support for k-nearest neighbors in a CAPT. However, it is possible to implement, and in some circumstances would be much faster than a
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. In fact, I made a confusion. What I need is not a (k) nearest neighbor, but a range search, that is, to get all points within a radius R of a given point. To give you an adapted answer related to this new question, I plan to use this feature to compute weighted averages, in which the weights are governed by distances from points in the tree to a given query point. The weights are sharply decreasing as a function of the distance. Given that, definitely the query can be approximated in the sense that if it gets points outside the range they are not going to matter and also that the average is (more or less) robust to some noise. |
Beta Was this translation helpful? Give feedback.
-
This is excellent, because range search is much easier to do with a CAPT than The best place to start would be by working from the last phase of collision-checking in the sequential or parallel implementation. In your case, instead of returning |
Beta Was this translation helpful? Give feedback.
-
First and foremost, amazing work!
I am planning to use the CAPT code only in my research. However, it seems it does not support k-neighbor search. Is there a CAPT implementation of this feature somewhere?
Beta Was this translation helpful? Give feedback.
All reactions