match_nearest

match_nearest

match_nearest(array1, array2, fast=True, max_dist=None)[source]

return a table [idx1,idx2,num1,num2,distance] matching the closest element from two arrays. Remark : algorithm very slow by conception if the arrays are too large.

Return type

ndarray