python
test.py
Go to the documentation of this file.
1
from
pynabo
import
*
2
import
numpy
as
np
3
4
x = np.array([[0.,3.], [1,2], [4,5]])
5
print(x)
6
7
nns =
NearestNeighbourSearch
(x)
8
q = np.array([[1.1, 2.]])
9
print(q)
10
11
res = nns.knn(q, 2, 0, SearchOptionFlags.ALLOW_SELF_MATCH)
12
print(res[0])
13
print(res[1])
NearestNeighbourSearch
Definition:
python/nabo.cpp:95
libnabo
Author(s): Stéphane Magnenat
autogenerated on Mon Feb 28 2022 22:41:38