Evaluate Goodness of Fit - Ellipsoid
1 次查看(过去 30 天)
显示 更早的评论
I have a set of 3D data points (x,y,z) and the quadratic form of an ellipsoid of equation
a*x^2 + b*y^2 + c*z^2 + d*xy + i*z - 1 = 0
with a,b,c,d,i known parameters.
How can I evaluate how well the equation fits the data?
3 个评论
Matt J
2019-6-14
I don't think so. R^2 is only defined for fitting problems where you have independent and dependent variables.
采纳的回答
Andrew McLean
2019-6-14
编辑:Andrew McLean
2019-6-14
One approach would be to calculate the distance of each point to the ellipsoid. Then your measure of goodness-of-fit could be the RMS distance of the points to the eliipsoid or the mean distance.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!