Say I have two sets of points X and Y possibly holding a different number of points, and of different dimensionality. We can assume that X and Y are n x m numpy arrays (n points, m dimensions each)
I would like to obtain the distribution (median and std) of sum(y-x) distances between the points in Y and X.
E.g. if one y point is (2,4) and one x point is (3,5) the sum(y-x) distance would be 2-3 + 4-5 = -2.
How can I do that in Python without looping?