forum.alglib.net http://forum.alglib.net/ |
|
alglib.spline2dbuildbicubic http://forum.alglib.net/viewtopic.php?f=2&t=531 |
Page 1 of 1 |
Author: | ShaThaL [ Tue Jan 31, 2012 12:18 pm ] |
Post subject: | alglib.spline2dbuildbicubic |
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 |
Author: | Sergey.Bochkanov [ Tue Jan 31, 2012 12:28 pm ] |
Post subject: | Re: alglib.spline2dbuildbicubic |
You should use spline1dbuildcubic() to work with your functions. spline2d....() is for 2-dimensional data, and you have 1-dimensional data. |
Author: | ShaThaL [ Tue Mar 06, 2012 5:28 pm ] |
Post subject: | Re: alglib.spline2dbuildbicubic |
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!? |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |