functions.models.nearest_neighbor_sorter

nearest_neighbor_sorter(data_array)[source]

Sorts the relevant nearest neighbors array.

Parameters:

data_array (ndarray) – The array of relevant nearest neighbors.

Returns:

grouped_paths – The array of relevant nearest neighbors grouped by dJ.

Return type:

ndarray