MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
Piecewise linear interpolation. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine, public | interpolation::pwl_interp_1d (nd, xd, yd, ni, xi, yi) |
Interpolates in 1D function. More... | |
Piecewise linear interpolation.
Subroutine for linear interpolation and extrapolation. Source: http://people.sc.fsu.edu/~jburkardt/f_src/pwl_interp_1d/pwl_interp_1d.html.
Definition in file interpolation.f90.
subroutine public interpolation::pwl_interp_1d | ( | integer ( kind = 4 ) | nd, |
real ( kind = dp ), dimension(nd) | xd, | ||
real ( kind = dp ), dimension(nd) | yd, | ||
integer ( kind = 4 ) | ni, | ||
real ( kind = dp ), dimension(ni) | xi, | ||
real ( kind = dp ), dimension(ni) | yi | ||
) |
Interpolates in 1D function.
Piecewise linear interpolation or extrapolation. Function is defined by discrete points. Subroutine can interpolate several points as once.
nd | number of data points, must be at least 1 |
ni | number of interpolation points |
xd | data points |
yd | data values |
xi | interpolation points |
yi | interpolation values |
nd | number of data points, must be at least 1 |
ni | number of interpolation points |
xd | data points |
yd | data values |
xi | interpolation points |
yi | interpolation values |
Definition at line 40 of file interpolation.f90.