| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.8 Interpolation
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/...).
- Method on
mglData:floatSpline (floatx,floaty=0,floatz=0)const - C function:
floatmgl_data_spline (HCDTdat,floatx,floaty,floatz) Interpolates data by cubic spline to the given point x in [0...nx-1], y in [0...ny-1], z in [0...nz-1].
- Method on
mglData:floatSpline1 (floatx,floaty=0,floatz=0)const Interpolates data by cubic spline to the given point x, y, z which assumed to be normalized in range [0, 1].
- Method on
mglData:floatLinear (floatx,floaty=0,floatz=0)const - C function:
floatmgl_data_linear (HCDTdat,floatx,floaty,floatz) Interpolates data by linear function to the given point x in [0...nx-1], y in [0...ny-1], z in [0...nz-1].
- Method on
mglData:floatLinear1 (floatx,floaty=0,floatz=0)const Interpolates data by linear function to the given point x, y, z which assumed to be normalized in range [0, 1].
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 13, 2012 using texi2html 5.0.
