| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
MGL scripts can use linear interpolation by subdata command, or spline interpolation by evaluate command. Also you can use resize for obtaining a data array with new sizes.
However, there are much special faster functions in other modes (C/C++/Fortran/Python/...).
mglData: float Spline (float x, float y=0, float z=0) constfloat mgl_data_spline (HCDT dat, float x, float y, float z)Interpolates data by cubic spline to the given point x in [0...nx-1], y in [0...ny-1], z in [0...nz-1].
mglData: float Spline1 (float x, float y=0, float z=0) constInterpolates data by cubic spline to the given point x, y, z which assumed to be normalized in range [0, 1].
mglData: float Linear (float x, float y=0, float z=0) constfloat mgl_data_linear (HCDT dat, float x, float y, float z)Interpolates data by linear function to the given point x in [0...nx-1], y in [0...ny-1], z in [0...nz-1].
mglData: float Linear1 (float x, float y=0, float z=0) constInterpolates data by linear function to the given point x, y, z which assumed to be normalized in range [0, 1].
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Autobuild on July 16, 2012 using texi2html 1.82.