* @return The new curve.
*/
public YieldAndDiscountCurve withSingleShift(final double t, final double shift) {
final double defaultRange = 1.0E-3; // 1 day ~ 3E-3
return new YieldAndDiscountAddZeroSpreadCurve(this._name + "WithSingleShift", false, this,
YieldCurve.from(new FunctionalDoublesCurve(new TopHatFunction(t - defaultRange, t + defaultRange, shift))));
}