code: def __update_centers(self):
          
          
          dimension = self.__pointer_data.shape[1]
          centers = numpy.zeros((len(self.__clusters), dimension))
          
          for index in range(len(self.__clusters)):
              cluster_points = self.__pointer_data[self.__clusters[index], :]
              centers[index] = cluster_points.mean(axis=0)
  
          return numpy.array(centers)
docs: !
          @brief Calculate centers of clusters in line with contained objects.
          
          @return (numpy.array) Updated centers.