public class CubicSplineInterpolation1D extends AbstractInterpolation
The natural cubic spline is piecewise cubic and twice continuously differentiable. Furthermore, its second derivative is zero at the end points.
Like polynomial interpolation, spline interpolation incurs a smaller error than linear interpolation and the interpolant is smoother. However, the interpolant is easier to evaluate than the high-degree polynomials used in polynomial interpolation. It also does not suffer from Runge's phenomenon.
|Constructor and Description|
|Modifier and Type||Method and Description|
Subclasses provide this as the actual interpolation method.
public CubicSplineInterpolation1D(double x, double y)
public double rawinterp(int j, double x)
public java.lang.String toString()