04-15-2018 11:49 AM - edited 04-15-2018 11:54 AM
Hi
How to interpolate 3D scattered data
Input is independent X,Y,Z array and Xi,Yi dependent variable, now want to compute Zi from interpolation function.
Sample dataset VI is attache for understanding....
04-15-2018 12:08 PM
Hi,
I am really bad at statistics so my question my seem silly, but what is the (mathematical ?) relation between Xi, Yi and Zi ? A bit more information would be helpful.
04-15-2018 12:12 PM - edited 04-15-2018 12:12 PM
04-15-2018 11:38 PM
Hi GredW
thanks for replay.
Interpolate2DScattered.vi takes to much time to execute. I will need to create grid as following picture and run time is about 40 minutes with for loop in parallelism mode ..
I need faster algorithm...
04-16-2018 12:24 AM
Hi lionheart,
I need faster algorithm...
For a start I would use smaller arrays here! Do you really need to interpolate giant 2D arrays?
You should have noted in your first post you want to interpolate 2D arrays: just use a different polymorphic version of Interpolate2DScattered:
- did you notice what I have done with your two for loops generating Xi and Yi? I did this for a reason…
04-16-2018 01:44 AM
Hi GerdW
I was not aware of having 2D polymorphic instance of that VI. I have to decimate at least 50 value instead of 500
Yes I need that giant 2d array to interpolate. I will be having similar second dataset.which will be interpolated ,
For both dataset X,Y will be same and Z1-Z2 used for calculation..
04-16-2018 02:22 AM - edited 04-16-2018 02:28 AM
Hi lionheart,
I was not aware of having 2D polymorphic instance of that VI.
So you did not read the LabVIEW help for this function?
I have to decimate at least 50 value instead of 500
That's your decision.
More data means more processing time and more memory demands!
Yes I need that giant 2d array to interpolate. I will be having similar second dataset.which will be interpolated , For both dataset X,Y will be same and Z1-Z2 used for calculation..
You may use different methods to calculate interpolation coefficients - and you could use even better suited presumptions. See Christians group about interpolation…