test.py
Go to the documentation of this file.
00001 from pynabo import *
00002 import numpy as np
00003 
00004 x = np.array([[0.,3.], [1,2], [4,5]])
00005 print(x)
00006 
00007 nns = NearestNeighbourSearch(x)
00008 q = np.array([[1.1, 2.]])
00009 print(q)
00010 
00011 res = nns.knn(q, 2, 0, SearchOptionFlags.ALLOW_SELF_MATCH)
00012 print(res[0])
00013 print(res[1])


libnabo
Author(s): Stéphane Magnenat
autogenerated on Sun Feb 10 2019 03:52:20