LEAPSynthesisPass.check_new_best

LEAPSynthesisPass.check_new_best(layer, dist, best_layer, best_dist)[source]

Check if the new layer depth and dist are a new best node.

Parameters:
  • layer (int) – The current layer in search.

  • dist (float) – The current distance in search.

  • best_layer (int) – The current best layer in the search tree.

  • best_dist (float) – The current best distance in search.