Greetings guys
I have a set of scatter data x and y
<tbody>
</tbody>
What I'm trying to do is to fit an ellipse through this data.
My approach is first to use the algebraic equation for an ellipse:
ax² + bxy + cy² + dx + ey + f = 0
I then created one additional column that allows me to compute the value of the ellipse equation for each pair of (x,y) coordinate. Also I assigned cells for the parameters in the ellipse equation: a, b, c, d, e, f
Then, to obtain the ellipse fit (which meant that I had to find the values of a,b,c,d,e,f which gave ellipse equation values = 0 for every pair of (x,y) point), what I did was to use the Solver feature in Excel:
such that:
Objective : Ellipse_equation value for first pair of (x,y) point = 0
While changing: a, b, c, d, e, f
Constraints: Ellipse_equation value for each and other pairs of (x,y) points = 0
However, the outcome of this process simply led the values of a,b,c,d,e,f = 0. I know this satisfies the condition, but it doesn't define an ellipse.
Anyone know what should I include in or edit the approach that I'm taking for this problem? Have been tearing out my hair in frustration on this one.
Thanks to everybody in advance. Would really appreciate your advice.
Thanks and regards
Corse
I have a set of scatter data x and y
x | y |
0 | 0.0947 |
1 | 0.3099 |
2 | 0.6277 |
3 | 1.0481 |
4 | 1.5711 |
5 | 2.1967 |
6 | 2.9249 |
7 | 3.7557 |
8 | 4.6891 |
9 | 5.7251 |
<tbody>
</tbody>
What I'm trying to do is to fit an ellipse through this data.
My approach is first to use the algebraic equation for an ellipse:
ax² + bxy + cy² + dx + ey + f = 0
I then created one additional column that allows me to compute the value of the ellipse equation for each pair of (x,y) coordinate. Also I assigned cells for the parameters in the ellipse equation: a, b, c, d, e, f
Then, to obtain the ellipse fit (which meant that I had to find the values of a,b,c,d,e,f which gave ellipse equation values = 0 for every pair of (x,y) point), what I did was to use the Solver feature in Excel:
such that:
Objective : Ellipse_equation value for first pair of (x,y) point = 0
While changing: a, b, c, d, e, f
Constraints: Ellipse_equation value for each and other pairs of (x,y) points = 0
However, the outcome of this process simply led the values of a,b,c,d,e,f = 0. I know this satisfies the condition, but it doesn't define an ellipse.
Anyone know what should I include in or edit the approach that I'm taking for this problem? Have been tearing out my hair in frustration on this one.
Thanks to everybody in advance. Would really appreciate your advice.
Thanks and regards
Corse