I have a large set of 3D data points to which I want to fit to an ellipsoid.
My maths is pretty poor, so I\'m having trouble implementing the least squares method withou
Least Squares data fitting is probably a good methodology give the nature of the data you describe. The GNU Scientific Library contains linear and non-linear least squares data fitting routines. In your case, you may be able to transform your data into a linear space and use linear least-squares, but that would depend on your actual use case. Otherwise, you'll need to use non-linear methods.