forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 7:56 pm

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: alglib.spline2dbuildbicubic
PostPosted: Tue Jan 31, 2012 12:18 pm 
Offline

Joined: Tue Jan 31, 2012 12:12 pm
Posts: 2
Hello,


i have two functions:

first:
double[] x = { 7.0, 14.0, 20.0 };
double[] y = { 3.0, 6.0, 10.0 };

and the seconde:
double[] x = { 7.0, 14.0, 20.0 };
double[] y = { 3.5, 6.0, 10.0 };

now i want to make an interpolation and get the result and compare this two ones.

but what i have to transfer to the function spline2dbuildbicubic?

_________________________________________________________________________________________________________

/*************************************************************************
This subroutine builds bicubic spline coefficients table.
Input parameters:
X - spline abscissas, array[0..N-1]
Y - spline ordinates, array[0..M-1]
F - function values, array[0..M-1,0..N-1]
M,N - grid size, M>=2, N>=2
Output parameters:
C - spline interpolant
-- ALGLIB PROJECT -- Copyright 05.07.2007 by Bochkanov Sergey
*************************************************************************/
public static void spline2dbuildbicubic( double[] x, double[] y, double[,] f, int m, int n, out spline2dinterpolant c)

____________________________________________________________________________________________________________________


now what is exactly my x, y, f, m, n !?

thanks for your answer!


best regards,
anne


Top
 Profile  
 
 Post subject: Re: alglib.spline2dbuildbicubic
PostPosted: Tue Jan 31, 2012 12:28 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You should use spline1dbuildcubic() to work with your functions. spline2d....() is for 2-dimensional data, and you have 1-dimensional data.


Top
 Profile  
 
 Post subject: Re: alglib.spline2dbuildbicubic
PostPosted: Tue Mar 06, 2012 5:28 pm 
Offline

Joined: Tue Jan 31, 2012 12:12 pm
Posts: 2
now i have two arrays
double [] handrechtsx;
double [] handrechtsy;

then i make
alglib.spline1dinterpolant c;
alglib.spline1dbuildcubic (handrechtsx, handrechtsy, out c);

and there is an unhandled exception named:

alglib + alglibexception : exception of type 'alglib + alglibexception' was thrown

where is the failure!?
can somebody help me!?


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