/src/main/java/net/finmath/marketdata2/model/curves/ForwardCurveInterpolation.java
final ForwardCurveInterpolation forwardCurveInterpolation = new ForwardCurveInterpolation( name, paymentOffset, InterpolationEntityForward.FORWARD, discountCurveName) ;final ForwardCurveInterpolation forwardCurveInterpolation = new ForwardCurveInterpolation( name, paymentOffset, InterpolationEntityForward.FORWARD, null) ;
final ForwardCurveInterpolation forwardCurveInterpolation = new ForwardCurveInterpolation ( name, paymentOffset, InterpolationEntityForward.FORWARD, null ) ;
for(int timeIndex=0; timeIndex<times.length;timeIndex++) { forwardCurveInterpolation.addForward(model, times[timeIndex], givenForwards[timeIndex], false); } return forwardCurveInterpolation; } public static ForwardCurveInterpolation createForwardCurveFromForwards(final String name, final double[] times, final RandomVariable[] givenForwards, final double paymentOffset) { <extra_id_0> for(int timeIndex=0; timeIndex<times.length;timeIndex++) { final double fixingTime = times[timeIndex]; final boolean isParameter = (fixingTime > 0); forwardCurveInterpolation.addForward(null, fixingTime, givenForwards[timeIndex], isParameter); } return forwardCurveInterpolation;