Fit a 3D line to 3D point data in Java?
问题 I've spent a decent amount of time trying to hunt down a simple way of doing this - ideally, a magical library exists out there somewhere that will take my set of 3D data points and return 2 points on the best fit line using either orthogonal regression or least squares and also return the error of the fitted line. Does such a thing exist, and if so, where? 回答1: This is easy enough to do, but to write it yourself you will need an eigenvalue solver or a singular value decomposition. Create the