### Question:
LinearCurveExtrapolator implements CurveExtrapolator, Serializable { @Override public BoundCurveExtrapolator bind(DoubleArray xValues, DoubleArray yValues, BoundCurveInterpolator interpolator) { return new Bound(xValues, yValues, interpolator); } private  LinearCurveExtrapolator(); @Override String getName(); @Override BoundCurveExtrapolator bind(DoubleArray xValues, DoubleArray yValues, BoundCurveInterpolator interpolator); @Override String toString(); static final String NAME; static final CurveExtrapolator INSTANCE; }### Answer:
@Test public void test_extrapolation() { BoundCurveInterpolator bci = CurveInterpolators.DOUBLE_QUADRATIC.bind(X_DATA, Y_DATA, LINEAR_EXTRAPOLATOR, LINEAR_EXTRAPOLATOR); for (int i = 0; i < X_TEST.size(); i++) { assertThat(bci.interpolate(X_TEST.get(i))).isCloseTo(Y_TEST.get(i), offset(1e-6)); } }