I have a curve represented as a parametric function, z(t)=(x(t), y(t)), x=f(t), y=g(t). If I wanna find a approximate curve using least square(using polynomial funtions), am I supposed to get one for x and one for y or just one for z?
Asked
Active
Viewed 148 times
0
-
Namely you want to have approximation to 5D curve? – Royi Apr 12 '20 at 21:04
-
No, just a 2d parametric curve. Thanks. – user7917593 Apr 14 '20 at 01:21
-
OK. What order of polynomial? It would be great if you could link to a CSV file or `MAT` file with coordinates and values you have. – Royi Apr 14 '20 at 07:31
-
The order if 3. Actually, I figured it out. Anyway, thanks very much for your help. – user7917593 Apr 15 '20 at 14:08
-
So please share the solution here and mark as answered. – Royi Apr 15 '20 at 16:39
-
So the problem is like this: given a parametric curve r(t) = (x(t), y(t)), find a approximate cubic polynomial curve. I collect multiple points in x(t) and y(t) and then use least square to find a corresponding curve for x(t), y(t). The final approximate curve is like r'(t) = (x'(t), y'(t)) – user7917593 Apr 17 '20 at 06:26
-
I know this, I wanted to answer you. But paste your answer and your code an answer for others to come. – Royi Apr 17 '20 at 06:35
-
Yeah. Thanks again. – user7917593 Apr 18 '20 at 07:37
1 Answers
0
So the problem is like this: given a parametric curve r(t) = (x(t), y(t)), find a approximate cubic polynomial curve. I collect multiple points in x(t) and y(t) and then use least square to find a corresponding curve for x(t), y(t). The final approximate curve is like r'(t) = (x'(t), y'(t))

user7917593
- 1
- 1