# forum.alglib.net

ALGLIB forum
 It is currently Tue Aug 09, 2022 7:23 pm

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 2 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: fitting closed contoursPosted: Wed Jun 26, 2013 7:33 am

Joined: Wed Jun 26, 2013 7:27 am
Posts: 2
Hello people!

I started using aglib and am getting fantastic results for open curves.
I am currently using "Penalized regression spline" for closed curve fitting.
But, I am not getting satisfactory results. What should I do for closed curves?

Regards
Harsh Deshpande

Top

 Post subject: Re: fitting closed contoursPosted: Thu Jun 27, 2013 7:19 am

Joined: Wed Jun 26, 2013 7:27 am
Posts: 2
Hey guys,

I was finally able to solve this using parametric equations.
We can find parameters for (x, y) by
t(1)=0
t(i+1)=t(i)+sqrt((x(i+1)-x(i)^2+(y(i+1)-y(i))^2); i=i,...,n

Then use cubic spline for (t, x) and (t, y) and plot the resultant (xS, yS) (where xS and xS are resultant of spline interpolation).
Hope this is the right way of doing it.

Thanks
Harsh

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 2 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: