Searched refs:cluster (Results 1 – 1 of 1) sorted by relevance
537 def find_cluster_bounding_rect(cluster, scratch_frame): argument551 avg_distance = find_average_neighbor_distance(cluster)555 c_x = min(cluster, key=lambda c: c.x - c.r)556 c_y = min(cluster, key=lambda c: c.y - c.r)557 c_w = max(cluster, key=lambda c: c.x + c.r)558 c_h = max(cluster, key=lambda c: c.y + c.r)573 def find_average_neighbor_distance(cluster): argument583 for a in cluster:586 for b in cluster:594 avg_distance /= len(cluster)