(self, other=None)
return sum(map(abs, v.vector))
Manhattan distance
Manhattan distance
Manhattan distance
def dist_cubic(self, other=None):
        """ Manhattan distance """
        v = self - other if other else self
        return sum(map(abs, v.vector))
def dist_cubic ( self , other = None ) : v = self - other if other else self return sum ( map ( abs , v . vector ) )