We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the legacy KDTree returns repeated indices (without nanoflann)
import openturns as ot sample = [[0.0, -1.0/3.0], [-0.5, -1.0/3.0], [0.5, -0.77777777777], [-0.75, -0.111111111], [0.25, 0.55555555555], [-0.25, -0.55555555555]] tree = ot.KDTree(sample) x = sample[1] sorted = True k = 6 indices = tree.queryK(x, k, sorted) print(indices)
=> [1,3,0,4,0,0] expected: [1,5,3,0,2,4]
also incorrect with k=5|sorted=False
master
all
from source
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
the legacy KDTree returns repeated indices (without nanoflann)
How to reproduce the issue?
=> [1,3,0,4,0,0]
expected: [1,5,3,0,2,4]
also incorrect with k=5|sorted=False
Version
master
Operating System
all
Installation media
from source
Additional Context
No response
The text was updated successfully, but these errors were encountered: