Generic interface to interp1 function
The interp function interpolates given table of values to
given query points. The generic interface is
yi = interp1(x, y, xi, method, extrap)
where
x is rank 1 array of sample points in ascending ordery is rank 1 or 2 array of values, for rank 2 array with elements
y(i,j) the index i corresponds to vector component and j is the
index of sample point, i.e. size(x) == size(y,2)xi is scalar or rank 1 array of query pointsmethod is an optional specification of interpolation method. It can be either
‘linear’, or ‘pchip’ (same as ‘cubic’), default is ‘linear’extrap is an optional parameter specifying the handling of query points
outside of sample point range. The parameter acceptsThe result yi is either
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rkind), | intent(in) | :: | x(:) | |||
| real(kind=rkind), | intent(in) | :: | y(size(x)) | |||
| real(kind=rkind), | intent(in) | :: | xi | |||
| character(len=*), | intent(in), | optional | :: | method | ||
| character(len=*), | intent(in), | optional | :: | extrap |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rkind), | intent(in) | :: | x(:) | |||
| real(kind=rkind), | intent(in) | :: | y(size(x)) | |||
| real(kind=rkind), | intent(in) | :: | xi(:) | |||
| character(len=*), | intent(in), | optional | :: | method | ||
| character(len=*), | intent(in), | optional | :: | extrap |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rkind), | intent(in) | :: | x(:) | |||
| real(kind=rkind), | intent(in) | :: | y(:,:) | |||
| real(kind=rkind), | intent(in) | :: | xi | |||
| character(len=*), | intent(in), | optional | :: | method | ||
| character(len=*), | intent(in), | optional | :: | extrap |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rkind), | intent(in) | :: | x(:) | |||
| real(kind=rkind), | intent(in) | :: | y(:,:) | |||
| real(kind=rkind), | intent(in) | :: | xi(:) | |||
| character(len=*), | intent(in), | optional | :: | method | ||
| character(len=*), | intent(in), | optional | :: | extrap |