[ << ] | [ < ] | [ 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
:mreal
Spline (mreal
x,mreal
y=0
,mreal
z=0
)const
- Method on
mglDataC
:dual
Spline (mreal
x,mreal
y=0
,mreal
z=0
)const
- C function:
mreal
mgl_data_spline (HCDT
dat,mreal
x,mreal
y,mreal
z) - C function:
dual
mgl_datac_spline (HCDT
dat,mreal
x,mreal
y,mreal
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].
- Method on
mglData
:mreal
Spline1 (mreal
x,mreal
y=0
,mreal
z=0
)const
- Method on
mglDataC
:dual
Spline1 (mreal
x,mreal
y=0
,mreal
z=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
:mreal
Spline (mglPoint
&dif,mreal
x,mreal
y=0
,mreal
z=0
)const
- C function:
mreal
mgl_data_spline_ext (HCDT
dat,mreal
x,mreal
y,mreal
z,mreal *
dx,mreal *
dy,mreal *
dz) - C function:
dual
mgl_datac_spline_ext (HCDT
dat,mreal
x,mreal
y,mreal
z,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
:mreal
Spline1 (mglPoint
&dif,mreal
x,mreal
y=0
,mreal
z=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
:mreal
Linear (mreal
x,mreal
y=0
,mreal
z=0
)const
- Method on
mglDataC
:dual
Linear (mreal
x,mreal
y=0
,mreal
z=0
)const
- C function:
mreal
mgl_data_linear (HCDT
dat,mreal
x,mreal
y,mreal
z) - C function:
dual
mgl_datac_linear (HCDT
dat,mreal
x,mreal
y,mreal
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].
- Method on
mglData
:mreal
Linear1 (mreal
x,mreal
y=0
,mreal
z=0
)const
- Method on
mglDataC
:dual
Linear1 (mreal
x,mreal
y=0
,mreal
z=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
:mreal
Linear (mglPoint
&dif,mreal
x,mreal
y=0
,mreal
z=0
)const
- Method on
mglDataC
:dual
Linear (mglPoint
&dif,mreal
x,mreal
y=0
,mreal
z=0
)const
- C function:
mreal
mgl_data_linear_ext (HCDT
dat,mreal
x,mreal
y,mreal
z,mreal *
dx,mreal *
dy,mreal *
dz) - C function:
dual
mgl_datac_linear_ext (HCDT
dat,mreal
x,mreal
y,mreal
z,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
:mreal
Linear1 (mglPoint
&dif,mreal
x,mreal
y=0
,mreal
z=0
)const
- Method on
mglDataC
:dual
Linear1 (mglPoint
&dif,mreal
x,mreal
y=0
,mreal
z=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.