forum.alglib.net

ALGLIB forum
It is currently Mon Dec 23, 2024 12:00 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  [ 3 posts ] 
Author Message
 Post subject: Requred Number of Nodes in Akima
PostPosted: Wed May 22, 2013 3:21 pm 
Offline

Joined: Wed May 22, 2013 3:09 pm
Posts: 1
Regarding to your manual (VB6) 5 nodes are required for a Akima spline interpolant; regarding to literature 4 should be sufficient. Is it possible to run the alglib Akima with just 4 nodes?

Code:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'This subroutine builds Akima spline interpolant

INPUT PARAMETERS:
    X           -   spline nodes, array[0..N-1]
    Y           -   function values, array[0..N-1]
    N           -   points count, N>=5


Top
 Profile  
 
 Post subject: Re: Requred Number of Nodes in Akima
PostPosted: Thu May 23, 2013 5:58 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
I've studied algorithm one more time, and - yes, it is possible. Akima spline with N=4 will become parabolic spline (or something like this), and everything should work. BTW, newer versions of ALGLIB will throw exception for N=4 so you will have to comment out line which performs check for N being >=5.


Top
 Profile  
 
 Post subject: Re: Requred Number of Nodes in Akima
PostPosted: Thu May 23, 2013 6:01 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
BTW, I've added support for N=2...4 to issues tracker, so it will appear in 3.8.0


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 36 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