forum.alglib.net
http://forum.alglib.net/

Want a C++ spline interpolation example
http://forum.alglib.net/viewtopic.php?f=2&t=89
Page 1 of 1

Author:  fulin [ Tue Oct 26, 2010 2:22 pm ]
Post subject:  Want a C++ spline interpolation example

Hi,

I just started to try your Alglib and I'm also a newbie for C++ programing. Just wonder if it possible you post a more complete C++ spline interpolation/fitting examples. All the examples and tutorials about alglib applications are interesting for me.

I tried the following, but it seems not work :oops: .

integer_1d_array x = "[0 1 2 3 4";
integer_1d_array y = "[2 4 3 7 8]";

spline1dinterpolant spline;
spline1dbuildcubic(x, y, &spline);

/Fulin

Author:  Sergey.Bochkanov [ Wed Oct 27, 2010 7:09 am ]
Post subject:  Re: Want a C++ spline interpolation example

Code:
integer_1d_array x = "[0 1 2 3 4";

it need closing bracket

Code:
spline1dbuildcubic(x, y, &spline);

"&" before spline is not needed

Does it works?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/