Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

SciPy KDTrees

from scipy.spatial import KDTree

points = [(1, -1), (2, 3), (-2, 3), (2, -3)]

kdtree = KDTree(points)
res = kdtree.query((1, 1))

print(res)
Comment

PREVIOUS NEXT
Code Example
Python :: mid-point line drawing 
::  
::  
::  
::  
::  
::  
::  
Python ::  
Python ::  
Python ::  
::  
::  
::  
::  
Python ::  
::  
::  
Python ::  
::  
::  
::  
:: ring open another file 
::  
::  
::  
::  
::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
5+7 =