I have a bunch of 4D points, and I'm looking to get their perpendicular distance from the line w=x=y=z (assuming w,x,y,z to be the 4D axes). It seems like there should be an easy way to do this in python, but I can't seem to figure it out.
Aside: This is basically a 4D scatter plot, and I'm trying to see how far each point is from the ideal scenario (w=x=y=z). Is there a mathematical term for this metric?