forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 9:22 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  [ 4 posts ] 
Author Message
 Post subject: Interpolation
PostPosted: Mon Oct 04, 2010 9:52 am 
Offline

Joined: Mon Oct 04, 2010 9:50 am
Posts: 7
I need to do the approach of weighing a few points each. I'll do it in C # with the alglib library. Which function do you suggest?


Top
 Profile  
 
 Post subject: Re: Interpolation
PostPosted: Mon Oct 04, 2010 10:25 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You can use several functions: polynomialfit to do polynomial fitting, spline1dfitcubic or spline1dfithermite to do spline fitting. Is it what you want?


Top
 Profile  
 
 Post subject: Re: Interpolation
PostPosted: Mon Oct 04, 2010 1:33 pm 
Offline

Joined: Mon Oct 04, 2010 9:50 am
Posts: 7
More or less...but I'd try with this functiones but I didn't get what I want. I need a function that will approximate entry points with weights. In matlab I was using function sp = spap2(knots,k,x,y,w) %SPAP2 Least squares spline approximation. But now I want to improve the approach and implement in C#. Any suggestions?? Thanks.


Top
 Profile  
 
 Post subject: Re: Interpolation
PostPosted: Mon Oct 04, 2010 5:13 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You can use spline1dfitcubicwc or spline1dfithermitewc for such tasks. WC means Weighted-Constrained, i.e. these functions can solve weighted problems with constraints on function value/derivative. And, of course, you can solve problem with weights but without constraints.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 40 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group