forum.alglib.net

ALGLIB forum
It is currently Wed Nov 27, 2024 2:32 am

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.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: fitting closed contours
PostPosted: Wed Jun 26, 2013 7:33 am 
Offline

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
 Profile  
 
 Post subject: Re: fitting closed contours
PostPosted: Thu Jun 27, 2013 7:19 am 
Offline

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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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 forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group