public class AkimaSplineInterpolator extends Object implements UnivariateInterpolator
This implementation is based on the Akima implementation in the CubicSpline class in the Math.NET Numerics library. The method referenced is CubicSpline.InterpolateAkimaSorted
The interpolate method returns a
PolynomialSplineFunction consisting of n cubic polynomials, defined
over the subintervals determined by the x values, x[0] < x[i] ... < x[n].
The Akima algorithm requires that n >= 5.
| Constructor and Description |
|---|
AkimaSplineInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
PolynomialSplineFunction |
interpolate(double[] xvals,
double[] yvals)
Computes an interpolating function for the data set.
|
public PolynomialSplineFunction interpolate(double[] xvals, double[] yvals) throws DimensionMismatchException, NumberIsTooSmallException, NonMonotonicSequenceException
interpolate in interface UnivariateInterpolatorxvals - the arguments for the interpolation pointsyvals - the values for the interpolation pointsDimensionMismatchException - if xvals and yvals have
different sizes.NonMonotonicSequenceException - if xvals is not sorted in
strict increasing order.NumberIsTooSmallException - if the size of xvals is smaller
than 5.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.