PiecewiseCubicHermiteSplineInterpolatorWithSensitivity extends PiecewisePolynomialInterpolator { @Override public PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues) { return INTERP.interpolate(xValues, yValues); }  @Override PiecewisePolynomialResultsWithSensitivity interpolateWithSensitivity(final double[] xValues, final double[] yValues); @Override PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues); @Override PiecewisePolynomialResult interpolate(double[] xValues, double[][] yValuesMatrix);  }
@Test public void baseInterpolationTest() { final int nExamples = Y.length; final int n = XX.length; for (int example = 0; example < nExamples; example++) { PiecewisePolynomialResult pp = PCHIP.interpolate(X, Y[example]); for (int i = 0; i < n; i++) { final double y = PPVAL.evaluate(pp, XX[i]).getEntry(0); assertEquals(YY[example][i], y, 1e-14); } } }