forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 9:30 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  [ 2 posts ] 
Author Message
 Post subject: Want a C++ spline interpolation example
PostPosted: Tue Oct 26, 2010 2:22 pm 
Offline

Joined: Tue Oct 26, 2010 2:12 pm
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: Want a C++ spline interpolation example
PostPosted: Wed Oct 27, 2010 7:09 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 31 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