DoubleQuadraticInterpolator1D extends Interpolator1D { @Override public Interpolator1DDoubleQuadraticDataBundle getDataBundle(final double[] x, final double[] y) { return new Interpolator1DDoubleQuadraticDataBundle(new ArrayInterpolator1DDataBundle(x, y)); } DoubleQuadraticInterpolator1D();  DoubleQuadraticInterpolator1D(final WeightingFunction weightFunction); @Override Double interpolate(final Interpolator1DDataBundle data, final Double value); @Override double firstDerivative(final Interpolator1DDataBundle data, final Double value); @Override double[] getNodeSensitivitiesForValue(final Interpolator1DDataBundle data, final Double value); @Override Interpolator1DDoubleQuadraticDataBundle getDataBundle(final double[] x, final double[] y); @Override Interpolator1DDoubleQuadraticDataBundle getDataBundleFromSortedArrays(final double[] x, final double[] y);  }
@Test public void testDataBundleType1() { assertEquals(INTERPOLATOR.getDataBundle(X_DATA, Y_DATA).getClass(), Interpolator1DDoubleQuadraticDataBundle.class); }