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 
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 Fri Aug 2 2024 08:39:11