forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 11:22 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.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [solved] Spline coefficients usage?
PostPosted: Thu May 10, 2012 11:38 pm 
Offline

Joined: Wed Mar 14, 2012 4:54 pm
Posts: 9
Hi Sergey,

I'd like to use the spline coefficients extracted by the "spline1dunpack" routine, ie. I'd like to use them later to recreate the spline interpolant. I looked into your documentation and code, and did not find any routine being able to take spline coeffs as input and return the spline interpolant as output (in fact, I did not find any routine taking these coeffs as input).
It would be really useful and powerful to have this feature. Eg. one could save this coeffs in a file, and never compute them again or share with some other people.
Do you plan to implement this in a near future? Or maybe I've missed the right routine to do that?

Regards


Last edited by mhavel on Mon May 14, 2012 3:12 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Spline coefficients usage?
PostPosted: Sat May 12, 2012 9:57 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You can rebuild spline with Spline1DBuildHermite() function - it accepts function values and derivatives at nodes, which can be easily obtained from spline coefficients. But you are right, we have to explain it in more details.


Top
 Profile  
 
 Post subject: Re: Spline coefficients usage?
PostPosted: Mon May 14, 2012 3:11 am 
Offline

Joined: Wed Mar 14, 2012 4:54 pm
Posts: 9
Thank you, I did not see that the hermite spline was accepting derivatives. It solves my problem. But still, it would be nice to have the function that do the job out of the box, without the need for the user to implement it. I did mine in python, but it would surely benefit (in terms of performance) from a code written in C.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group