(self)
return [rm.mean for rm in centroid]
Returns the centroid of the layout.

        The centroid of the layout is the arithmetic mean of the points in
        the layout.

        @return: the centroid as a list of floats
Returns the centroid of the layout.
Returns the centroid of the layout .
def centroid(self):
        """Returns the centroid of the layout.

        The centroid of the layout is the arithmetic mean of the points in
        the layout.

        @return: the centroid as a list of floats"""
        centroid = [RunningMean() for _ in range(self._dim)]
        for row in self._coords:
            for dim in range(self._dim):
                centroid[dim].add(row[dim])
        return [rm.mean for rm in centroid]
def centroid ( self ) : centroid = [ RunningMean ( ) for _ in range ( self . _dim ) ] for row in self . _coords : for dim in range ( self . _dim ) : centroid [ dim ] . add ( row [ dim ] ) return [ rm . mean for rm in centroid ]