Suppose I have some n
points (in my case, 4
points) in 3 dimensions
. I want to determine both the point a
which minimizes the squared distance to each of these n
points, as well as the largest difference that can exist between the distance from an arbitrary point b
and any two of these n
points (i.e. the two "farthest points").
How can this be most efficiently accomplished? I know that, in 2 dimensions
and with 3
points, the solution to the point that minimized distance is the centroid of the triangle formed by the 3
points, and the solution to the largest difference can be found by taking a point located precisely at one (any?) of the 3
points. It seems that the same should be true in 3 dimensions
, although I am unsure.