match_nearest#
- match_nearest(array1, array2)[source]#
Match the closest elements of two arrays vectors and return the matching matrix.
- Parameters:
array1 (array_like) – First vector.
array2 (array_like) – Second vector.
- Returns:
matching_matrix (array_like) – Matrix where each column contain : 1) the indices in the first vector 2) the indices in the second vector 3) the values in the first vector 4) the values in the second vector 5) the distance between the closest elements