postprocessor.core.functions.tracks.get_closest_pairs¶
- get_closest_pairs(pre, post, tol=1)[source]¶
Calculate a cost matrix the Hungarian algorithm to pick the best set of options
input :type pre:
List
[float
] :param pre: list of floats with edges on left :type post:List
[float
] :param post: list of floats with edges on right :type tol:Union
[float
,int
] :param tol: int or float if int metrics of tolerance, if float fractionreturns :: list of indices corresponding to the best solutions for matrices