forum.alglib.net http://forum.alglib.net/ |
|
[solved] Spline coefficients usage? http://forum.alglib.net/viewtopic.php?f=2&t=577 |
Page 1 of 1 |
Author: | mhavel [ Thu May 10, 2012 11:38 pm ] |
Post subject: | [solved] Spline coefficients usage? |
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 |
Author: | Sergey.Bochkanov [ Sat May 12, 2012 9:57 am ] |
Post subject: | Re: Spline coefficients usage? |
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. |
Author: | mhavel [ Mon May 14, 2012 3:11 am ] |
Post subject: | Re: Spline coefficients usage? |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |