def update_distances(self, cluster_centers: List[int]) -> None:
        """Update min distances given cluster centers.

        Args:
            cluster_centers (List[int]): indices of cluster centers
        """

        if cluster_centers:
            centers = self.features[cluster_centers]
            distance = pairwise_distance(self.features, centers).reshape(
                (-1, 1))

            if self.min_distances is None:
                self.min_distances = distance
            else:
                self.min_distances = paddle.minimum(self.min_distances,
                                                    distance)
Update min distances given cluster centers.

        Args:
            cluster_centers (List[int]): indices of cluster centers
        
contrib/QualityInspector/qinspector/uad/utils/k_center_greedy.py