Searched refs:cluster (Results 1 – 1 of 1) sorted by relevance
541 def find_cluster_bounding_rect(cluster, scratch_frame): argument555 avg_distance = find_average_neighbor_distance(cluster)559 c_x = min(cluster, key=lambda c: c.x - c.r)560 c_y = min(cluster, key=lambda c: c.y - c.r)561 c_w = max(cluster, key=lambda c: c.x + c.r)562 c_h = max(cluster, key=lambda c: c.y + c.r)577 def find_average_neighbor_distance(cluster): argument587 for a in cluster:590 for b in cluster:598 avg_distance /= len(cluster)