Compute the cyclic interpolating cubic spline (2D) that passes for
points . Each segment is described by the curve:
The algorithm used to compute the coefficients is taken from
"Numerical Algorithm with C" - Gisela ENGELN-MULLGES Frank UHLIG
(10.1007/978-3-642-61074-5)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip), | intent(in) | :: | n |
Dimension of the data series |
||
real(kind=rp), | intent(in) | :: | x(n) |
X-values of input data |
||
real(kind=rp), | intent(in) | :: | y(n) |
Y-values of input data |
||
real(kind=rp), | intent(out) | :: | a(n) |
Coefficients of the cubic spline in each segment of the spline |
||
real(kind=rp), | intent(out) | :: | b(n) |
Coefficients of the cubic spline in each segment of the spline |
||
real(kind=rp), | intent(out) | :: | c(n) |
Coefficients of the cubic spline in each segment of the spline |
||
real(kind=rp), | intent(out) | :: | d(n) |
Coefficients of the cubic spline in each segment of the spline |