}
@Override
public YieldAndDiscountCurve generateCurve(final String name, final double[] x) {
ArgumentChecker.isTrue(x.length == _nbPoints, "Incorrect dimension for the rates");
return new YieldPeriodicCurve(name, _compoundingPeriodsPerYear, new InterpolatedDoublesCurve(_nodePoints, x, _interpolator, true, name));
}