postprocessor.core.functions.tracks.get_closest_pairs

postprocessor.core.functions.tracks.get_closest_pairs(pre: List[float], post: List[float], tol: Union[float, int] = 1)

Calculate a cost matrix the Hungarian algorithm to pick the best set of options

input :param pre: list of floats with edges on left :param post: list of floats with edges on right :param tol: int or float if int metrics of tolerance, if float fraction

returns :: list of indices corresponding to the best solutions for matrices