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

Spline2DBuildBicubic из alglib-2.6.0.delphi
http://forum.alglib.net/viewtopic.php?f=2&t=3848
Page 1 of 1

Author:  Anna [ Mon Apr 09, 2018 7:16 am ]
Post subject:  Spline2DBuildBicubic из alglib-2.6.0.delphi

Добрый день!
Использую Spline2DBuildBicubic из alglib-2.6.0.delphi.
При m<>n программа не работает, ошибка "Invalid pointer operation".
При m=n полученный результат значимо отличается от реального.
Подскажите, что не так.
Мой кусочек проги:
m:=6;
n:=8;
SetLength(X, m);
SetLength(Y, n);
SetLength(F, m, n);
for i:=0 to m-1 do x[i]:= i;
for j:=0 to n-1 do y[j]:= j*2;
for i:=0 to m-1 do
for j:=0 to n-1 do f[i,j]:= x[i]+y[j];
Spline2DBuildBicubic(X,Y,F,m,n,c);
//Spline2DBuildBilinear(X,Y,F,m,n,c);
xt:=2.4;
yt:=4.1;
ft:=Spline2DCalc(C,xt,yt);
showmessage(FloatToStr(ft));

Author:  Sergey.Bochkanov [ Wed Apr 11, 2018 9:54 am ]
Post subject:  Re: Spline2DBuildBicubic из alglib-2.6.0.delphi

Hi!

Maybe you misplaced M and N? Not 100% sure, but possible. Anyway, 2.6.0 is obsolete - maybe you should try 3.x branch for Delphi?

P.S. It is English forum :)

Author:  Anna [ Thu Apr 12, 2018 2:05 am ]
Post subject:  Re: Spline2DBuildBicubic из alglib-2.6.0.delphi

Sorry, I don't speak English very well

Maybe you misplaced M and N?
I it is first, what I try. Result - no.

Anyway, 2.6.0 is obsolete - maybe you should try 3.x branch for Delphi?
I don't see another version for Delphi in this site.

question: 2.6.0 is not correct?

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