| [ << ] | [ < ] | [ 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:mrealSpline (mrealx,mrealy=0,mrealz=0)const - Method on
mglDataC:dualSpline (mrealx,mrealy=0,mrealz=0)const - C function:
mrealmgl_data_spline (HCDTdat,mrealx,mrealy,mrealz) - C function:
dualmgl_datac_spline (HCDTdat,mrealx,mrealy,mrealz) 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:mrealSpline1 (mrealx,mrealy=0,mrealz=0)const - Method on
mglDataC:dualSpline1 (mrealx,mrealy=0,mrealz=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:mrealSpline (mglPoint&dif,mrealx,mrealy=0,mrealz=0)const - C function:
mrealmgl_data_spline_ext (HCDTdat,mrealx,mrealy,mrealz,mreal *dx,mreal *dy,mreal *dz) - C function:
dualmgl_datac_spline_ext (HCDTdat,mrealx,mrealy,mrealz,dual *dx,dual *dy,dual *dz) Interpolates data by cubic spline to the given point x in [0...nx-1], y in [0...ny-1], z in [0...nz-1]. The values of derivatives at the point are saved in dif.
- Method on
mglData:mrealSpline1 (mglPoint&dif,mrealx,mrealy=0,mrealz=0)const Interpolates data by cubic spline to the given point x, y, z which assumed to be normalized in range [0, 1]. The values of derivatives at the point are saved in dif.
- Method on
mglData:mrealLinear (mrealx,mrealy=0,mrealz=0)const - Method on
mglDataC:dualLinear (mrealx,mrealy=0,mrealz=0)const - C function:
mrealmgl_data_linear (HCDTdat,mrealx,mrealy,mrealz) - C function:
dualmgl_datac_linear (HCDTdat,mrealx,mrealy,mrealz) 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:mrealLinear1 (mrealx,mrealy=0,mrealz=0)const - Method on
mglDataC:dualLinear1 (mrealx,mrealy=0,mrealz=0)const Interpolates data by linear function to the given point x, y, z which assumed to be normalized in range [0, 1].
- Method on
mglData:mrealLinear (mglPoint&dif,mrealx,mrealy=0,mrealz=0)const - Method on
mglDataC:dualLinear (mglPoint&dif,mrealx,mrealy=0,mrealz=0)const - C function:
mrealmgl_data_linear_ext (HCDTdat,mrealx,mrealy,mrealz,mreal *dx,mreal *dy,mreal *dz) - C function:
dualmgl_datac_linear_ext (HCDTdat,mrealx,mrealy,mrealz,dual *dx,dual *dy,dual *dz) Interpolates data by linear function to the given point x in [0...nx-1], y in [0...ny-1], z in [0...nz-1]. The values of derivatives at the point are saved in dif.
- Method on
mglData:mrealLinear1 (mglPoint&dif,mrealx,mrealy=0,mrealz=0)const - Method on
mglDataC:dualLinear1 (mglPoint&dif,mrealx,mrealy=0,mrealz=0)const Interpolates data by linear function to the given point x, y, z which assumed to be normalized in range [0, 1]. The values of derivatives at the point are saved in dif.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 21, 2014 using texi2html 5.0.
