SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
[Custom Functions] Linear Interpolation
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,125 Was thanked: 506 time(s) in 337 post(s)
|
First of all I don't know if this method is supported, it would be very useful if not. So if this is not a feature please forgive me because I considered as a bug. The "InterBilinear" function gives wrong results if matrix is used for x or y value. interpolation.sm (16kb) downloaded 86 time(s).Regards
|
1 user thanked overlord for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: overlord First of all I don't know if this method is supported, it would be very useful if not. So if this is not a feature please forgive me because I considered as a bug. The "InterBilinear" function gives wrong results if matrix is used for x or y value. Mathcad Bicubic can't be reproduced, even "if it could be" would be useless whereas Smath does not have Matrix 3D plot [only 3 cols]. Your metric X,Y directions aren't correct. You can metric like center as well. You can have surface plot, only... rotate the plot at will. interpolation [Oterwise metric X, Y Directions].sm (34kb) downloaded 53 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: Jean Giraud You can have it otherwise from the X_Y surface plot. ... you can create the matrix and the X, Y directions at will. Then just interpolate ... Spline linterp has the virtue equivalent quadratic. It would be mistake to cspline. Cheers ... Jean Bilinear SplineInterp [Construct USER].sm (13kb) downloaded 32 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
It is a bug, thank you! 4th and 5th argument type isn't checked, therefore (unintentionally) vector math applies. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: overlord First of all I don't know if this method is supported, it would be very useful if not. So if this is not a feature please forgive me because I considered as a bug. The "InterBilinear" function gives wrong results if matrix is used for x or y value. Two things here: 1. The 4th and 5th arguments are presented in reverse order compared to Mathcad 2. The two dimension spline coding is from unknown source ...neither from either Smath [linterp, cinterp, ainterp] ...could be from erroneous quadratic source code. As given in the attached: Spline(x,y,M) assumed = Mathcad Bicubic2D(x,y,M,vx,object) At this point, you can spline/plot/rotate the surface as suggested before Cheers ... Jean Bilinear SplineInterp [Construct USER].sm (25kb) downloaded 45 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: Jean Giraud Two things here: InterpBilinear(vx,vy,M,object,vector) ... does not collect"vector wise" InterpBilinear(vx,vy,M,object,valueX) ... correct That is the answer to the "bug", InterpBilinear(vx,vy,M,object,vector)
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
[Custom Functions] Linear Interpolation
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.