approx1 interpolates data along the first dimensions.
More...
approx1 interpolates data along the first dimensions.
It has three options for the type of interpolation to perform:
C Interface for signals interpolation on one dimensional signals.
- Parameters
-
[out] | out | is the array with interpolated values |
[in] | in | is the input array |
[in] | pos | array contains the interpolation locations |
[in] | method | is the interpolation type, it can take one of the values defined by the enum af_interp_type |
[in] | offGrid | is the value that will set in the output array when certain index is out of bounds |
- Returns
- AF_SUCCESS if the interpolation operation is successful, otherwise an appropriate error code is returned.
C++ Interface for data interpolation on one dimensional signals.
- Parameters
-
[in] | in | is the input array |
[in] | pos | array contains the interpolation locations |
[in] | method | is the interpolation type, it can take one of the values defined by the enum af_interp_type |
[in] | offGrid | is the value that will set in the output array when certain index is out of bounds |
- Returns
- the array with interpolated values