Given several (N) lines in three-dimensional space, find a point that minimizes the distance to all lines.
- Given that the shortest distance between the line [aX + b] and the point [P] will be on the perpendicular line [aX + b] - [P], I can express the minimum square distance as the sum of the square of the distance, for example. ([aX + b] - [P]) ^ 2 + ... + ([aX + b] n- [P]) ^ 2.
- Since the strings are perpendicular, I can use the Dot Product to express [P] in terms of the line
I examined the use of least squares to estimate a point that minimizes distance, the problem is that the standard least squares will approximate the best suitable line / curve given by the set of points. What I need is the opposite, given a set of lines evaluate the best fitting point.
How to approach this?
source
share