final InterpolatedDoublesCurve interpolatedCurve = (InterpolatedDoublesCurve) curve;
// This is a hack for now as it's all about to change
final Interpolator1DDataBundle interpolatorBundle = interpolatedCurve.getDataBundle();
final double first = interpolatorBundle.firstKey();
final double last = interpolatorBundle.lastKey();
return interpolateCurve(curve, first, last);
} else {
final double first = 1. / 12;