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