smile.interpolation
Class CubicSplineInterpolation1D
- java.lang.Object
-
- smile.interpolation.AbstractInterpolation
-
- smile.interpolation.CubicSplineInterpolation1D
-
- All Implemented Interfaces:
- Interpolation
public class CubicSplineInterpolation1D extends AbstractInterpolation
Cubic spline interpolation. Spline interpolation uses low-degree polynomials in each of the intervals, and chooses the polynomial pieces such that they fit smoothly together. The resulting function is called a spline.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 Summary
Constructors Constructor and Description CubicSplineInterpolation1D(double[] x, double[] y)Constructor.
-
Method Summary
-
Methods inherited from class smile.interpolation.AbstractInterpolation
interpolate
-
-
DataMelt 3.0 © DataMelt by jWork.ORG