interpolation, cubic spline, PCHIP, Julia, irregular grid, hermite
This article shows how to interpolate between regularly- or irregularly-spaced points in Julia 1.4. It has derivations of the theory behind cubic splines, and piece-wise cubic hermite polynomial interpolation. The spline interpolants are continuous and have continuous first and second derivatives. The hermite polynomial interpolants are continuous and have continuous first derivatives. Three techniques are implemented to determine the slope at the data points for the interpolation (knots). One uses the average slope of the neighboring segments. Another use the quadratic polynomial passing through the point and its two neighbors. The third, PCHIP, is similar to the first method, but it adjust the slopes where necessary to avoid oscillations in the interpolant near jumps in the data points.
BYU ScholarsArchive Citation
Turley, R. Steven, "Cubic Interpolation with Irregularly-Spaced Points in Julia 1.4" (2018). Faculty Publications. 2177.
Physical and Mathematical Sciences
Physics and Astronomy
Copyright Use Information