Python: fit 3D ellipsoid (oblate/prolate) to 3D points
问题 Dear fellow stackoverflow users, I face a problem as follows: I would like to fit a 3D ellipsoid to 3D data points within my python script. The starting data are a set of x, y and z coordinates (cartesian coordinates). What I would like to get are a and c in the defining equation of the best-fit ellipsoid of the convex hull of the 3D data points. The equation is, in the properly rotated and translated coordinate system: So the tasks I would ideally like to do are: Find convex hull of 3D data