/src/main/java/net/finmath/marketdata/model/curves/DiscountCurveInterpolation.java
for( short timeIndex=0; timeIndex<times.length;timeIndex++) {
for ( int timeIndex=0; timeIndex<times.length;timeIndex++ ) {
isParameter[timeIndex] = times[timeIndex] > 0; } return createDiscountCurveFromDiscountFactors(name, times, givenDiscountFactors, isParameter, interpolationMethod, extrapolationMethod, interpolationEntity); } public static DiscountCurveInterpolation createDiscountCurveFromDiscountFactors(final String name, final double[] times, final double[] givenDiscountFactors) { final DiscountCurveInterpolation discountFactors = new DiscountCurveInterpolation(name); <extra_id_0> discountFactors.addDiscountFactor(times[timeIndex], givenDiscountFactors[timeIndex], times[timeIndex] > 0); } return discountFactors; } public static DiscountCurveInterpolation createDiscountCurveFromZeroRates( final String name, final LocalDate referenceDate,