New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncertanty estimation #16
Comments
Hi! I haven't used the code for some time. Buy that's what I think on the spot. |
I maybe wrong here, but I think what you need to look into is computing the residual of that solve ellipsoid_fit_python/ellipsoid_fit.py Line 125 in bfab4ce
|
Firstly, thanks for answering! I'm looking exactly at that by replacing np.linalg.solve() with np.linalg.lstsq(), which returns also the residual. Now I'm looking into a meaningful way to normalize it! |
np.linalg.solve() is slightly different from np.linalg.lstsq(), solve() can be both more precise and efficient. Residual computation is not hard, you just need to take the difference between substituted solution and rhs of the equation. Something like D.dot(u) - d2. You may also look into https://github.com/marksemple/pyEllipsoid_Fit/blob/master/ellipsoid_fit.py - it's another Python port of the same matlab code |
Hi! Thank you a lot for your code, it has been really helpful!
Do you have any idea on how to extract the uncertainty of the fit?
Best regard!
The text was updated successfully, but these errors were encountered: