Defines a type meant for performing piecewise polynomial interpolation.
Initializes the interpolation object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial_interpolator), | intent(inout) | :: | this |
The polynomial_interpolator object. |
||
| integer(kind=int32), | intent(in) | :: | order |
The polynomial order. This value must be at least 1. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
An N-element array containing the x-coordinate data in either monotonically increasing or decreasing order. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | y |
An N-element array containing the y-coordinate data. |
|
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handler object. |
Performs the interpolation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(base_interpolator), | intent(inout) | :: | this |
The base_interpolator object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
An N-element array containing the x values at which to compute the interpolation. |
|
| real(kind=real64), | intent(out), | dimension(:) | :: | yi |
An N-element array containing the interpolated data. |
|
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Interpolates a single value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polynomial_interpolator), | intent(inout) | :: | this |
The polynomial_interpolator object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to compute the interpolation. |
The interpolated value.