Library of Octave/MATLAB like interpolations
The library supports following interpolation routine:
yi = inerp1(x, y, xi, method, extrap
Interfaces
Generic interface to interp1 function
Read more…
-
private pure function interp1_rank00(x, y, xi, method, extrap) result(yi)
Arguments
| 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 | |
Return Value real(kind=rkind)
-
private pure function interp1_rank01(x, y, xi, method, extrap) result(yi)
Arguments
| 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 | |
Return Value real(kind=rkind)(size(xi))
-
private pure function interp1_rank10(x, y, xi, method, extrap) result(yi)
Arguments
| 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 | |
Return Value real(kind=rkind)(size(y,1))
-
private pure function interp1_rank11(x, y, xi, method, extrap) result(yi)
Arguments
| 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 | |
Return Value real(kind=rkind)(size(y,1),size(xi))
-
private function create_interp1_t(x, y, method, extrap) result(i1)
Arguments
| Type | Intent | Optional | Attributes | | Name | |
| real(kind=rkind), |
intent(in) |
| | :: |
x(:) | |
| real(kind=rkind), |
intent(in) |
| | :: |
y(size(x)) | |
| character(len=*), |
intent(in), |
optional | | :: |
method | |
| character(len=*), |
intent(in), |
optional | | :: |
extrap | |
Return Value type(interp1_t)
Derived Types
Class implementing scalar interpolations
Read more…
Constructor
| private function create_interp1_t(x, y, method, extrap) | |
Type-Bound Procedures
| procedure, public :: at => interp1_t_at |
returns interpolated value at given point |