Looking for Cubic Spline Interpolation Code

93 views
Skip to first unread message

expertalmost

unread,
Jul 13, 2010, 1:49:36 AM7/13/10
to Professional PHP Developers
Good morning!

I have a set of discrete data points from which I need to interpolate
new values. My (neophyte) mathematical research suggests that cubic
spline interpolation gives the best result with the least amount of
calculation overhead.

I expected to find any number of functions in PHP (input two x,y
points, and a point to interpolate: output the interpolated point) but
cannot find any. I find C/C++ code, Matlab, even VBA. I could probably
port some of that code over, but can anyone point me to so tested-
ready-to-run code?

Thanks!

Robert Gonzalez

unread,
Jul 13, 2010, 12:24:53 PM7/13/10
to professi...@googlegroups.com
I say try porting it first. In the time it takes someone to search/code it for you, you could probably have already gleaned from the C/VBA code what you would need to turn it into PHP.

--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.

For information or project assistance please visit :
http://www.360psg.com

You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP

Jack Timmons

unread,
Jul 13, 2010, 9:21:05 AM7/13/10
to professi...@googlegroups.com

You've got me. This sounds like something going beyond PHP anyway, and
you'll likely want it in a lower-level language.

--
Jack Timmons
@_Codeacula
Feel free to contact me on GTalk.

Reply all
Reply to author
Forward
0 new messages