def __calculate_nearest_distance(self, index_cluster1, index_cluster2):
candidate_minimum_distance = float('<STR_LIT>');<EOL>for index_object1 in self.__clusters[index_cluster1]:<EOL><INDENT>for index_object2 in self.__clusters[index_cluster2]:<EOL><INDENT>distance = euclidean_distance_square(self.__pointer_data[index_object1], self.__pointer_data[index_object2]);<EOL>if (distance < candidate_minimum_distance):<EOL><INDENT>candidate_minimum_distance = distance;<EOL><DEDENT><DEDENT><DEDENT>return candidate_minimum_distance<EOL>
!
        @brief Finds two nearest objects in two specified clusters and returns distance between them.

        @param[in] (uint) Index of the first cluster.
        @param[in] (uint) Index of the second cluster.

        @return The nearest euclidean distance between two clusters.