LogLinearWithSeasonalitiesInterpolator1D extends Interpolator1D { @Override public Interpolator1DDataBundle getDataBundleFromSortedArrays(final double[] x, final double[] y) { return new ArrayInterpolator1DDataBundle(x, y, true); } LogLinearWithSeasonalitiesInterpolator1D(final double[] monthlyFactors); @Override Double interpolate(final Interpolator1DDataBundle model, final Double value); @Override Interpolator1DDataBundle getDataBundle(final double[] x, final double[] y); @Override Interpolator1DDataBundle getDataBundleFromSortedArrays(final double[] x, final double[] y); @Override double[] getNodeSensitivitiesForValue(final Interpolator1DDataBundle data, final Double value);  }
@Test public void testDataBundleType2() { assertEquals(INTERPOLATOR.getDataBundleFromSortedArrays(new double[] {1, 2, 3 }, new double[] {1, 2, 3 }).getClass(), ArrayInterpolator1DDataBundle.class); }