ReciprocalExtrapolator1D extends ProductPolynomialExtrapolator1D { @Override public double[] getNodeSensitivitiesForValue(final Interpolator1DDataBundle data, final Double value) { return super.getNodeSensitivitiesForValue(data, value); } ReciprocalExtrapolator1D(Interpolator1D interpolator); @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);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void insideRangeSenseTest() { double[] xValues = new double[] {2.4, 3.2, 3.5, 7.6 }; double[] yValues = new double[] {1.1, 1.9, 2.3, -0.1 }; ReciprocalExtrapolator1D extrap1D = new ReciprocalExtrapolator1D( new ProductPiecewisePolynomialInterpolator1D(INTERP_SENSE[1])); Interpolator1DDataBundle data = extrap1D.getDataBundle(xValues, yValues); extrap1D.getNodeSensitivitiesForValue(data, 5.2); }
@Test(expectedExceptions = IllegalArgumentException.class) public void nullDataSenseTest() { S_EXTRAP.getNodeSensitivitiesForValue(null, 5.0); }
@Test(expectedExceptions = IllegalArgumentException.class) public void nullValueSenseTest() { S_EXTRAP.getNodeSensitivitiesForValue(S_DATA, null); }