code: def _locateConvergencePoint(stats, minOverlap, maxOverlap):
      
      for i, v in enumerate(stats[::-1]):
        if not (v >= minOverlap and v <= maxOverlap):
          return len(stats) - i + 1
  
      # Never differs - converged in one iteration
      return 1
docs: Walk backwards through stats until you locate the first point that diverges
      from target overlap values.  We need this to handle cases where it might get
      to target values, diverge, and then get back again.  We want the last
      convergence point.