Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

previous nearest neighbors in set of ordered points #109

Open
joeguinness opened this issue Jun 11, 2020 · 0 comments
Open

previous nearest neighbors in set of ordered points #109

joeguinness opened this issue Jun 11, 2020 · 0 comments

Comments

@joeguinness
Copy link

Hello, I am wondering if it is possible for me to modify some of the functions in this package to solve the following problem: let x_1, x_2, ..., x_n be an ordered set of points in a euclidean space (e.g. x_1 = (4.7, 3.2, 1.6) ). For each i, I would like to find the nearest neighbors to x_i from the set of points (x_1, x_2, ..., x_{i-1}), that is, from the set of points that come previous to x_i in the ordering. The application is called Vecchia's approximation, a method for approximating likelihoods for Gaussian process models.

A naive way would be to recompute the tree from (x_1,...,x_i) for each i, and select the nearest neighbors to x_i from that tree. But that would be wasteful, and I'm hoping I can compute the tree once at the beginning and re-use the same tree.

Any help would be appreciated. I'm somewhat new to julia but have lots of experience writing R code and moderate experience in C++.

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

No branches or pull requests

1 participant