public class HermiteSplineInterp extends LinearInterp
Based on the the code from G. Hill, Publ. DAO, vol 16, no. 6 (1982) which uses US Airforce Surveys in Geophysics no. 272 as its source.
The effect is supposed to construct reasonable analytic curves through discrete data points (i.e. like those a human would produce).
c, decr, x, y| Constructor and Description |
|---|
HermiteSplineInterp()
Create an instance with no coordinates.
|
HermiteSplineInterp(double[] x,
double[] y)
Create an instance with the given coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double xp)
Return the interpolated value corresponding to some arbitrary
X coordinate.
|
static void |
main(String[] args)
Simple test entry point.
|
guessStepappendValue, binarySearch, evalYData, evalYDataArray, getCount, getXCoord, getXCoords, getYCoord, getYCoords, isFull, isIncreasing, setCoords, stepGuesspublic HermiteSplineInterp()
setCoords must be made before any other methods.public HermiteSplineInterp(double[] x,
double[] y)
interpolate method. The X
coordinates should be monotonic, either increasing or
decreasing. Same value X coordinates are not allowed.x - the X coordinates.y - the Y coordinates.public double interpolate(double xp)
Interpolatorinterpolate in interface Interpolatorinterpolate in class LinearInterpxp - the X coordinate at which an interpolated Y
coordinate is required.public static void main(String[] args)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.