def getOverlapRatio(loop, pointTable):
 numberOfOverlaps = 0
 for point in loop:
  if (point in pointTable):
   numberOfOverlaps += 1
 return (float(numberOfOverlaps) / float(len(loop)))

def getOverlapRatio ( loop , pointTable ) : numberOfOverlaps = 0 for point in loop : if ( point in pointTable ) : numberOfOverlaps += 1 return ( float ( numberOfOverlaps ) / float ( len ( loop ) ) )
get the overlap ratio between the loop and the point table .