/src/main/java/net/finmath/marketdata2/model/curves/DiscountCurveInterpolation.java
return createDiscountCurveFromDiscountFactors( times, name, givenDiscountFactorsAsRandomVariables) ;
return createDiscountCurveFromDiscountFactors ( name, times, givenDiscountFactorsAsRandomVariables ) ;
} public static DiscountCurveInterpolation createDiscountCurveFromDiscountFactors(final String name, final double[] times, final double[] givenDiscountFactors) { final RandomVariable[] givenDiscountFactorsAsRandomVariables = DoubleStream.of(givenDiscountFactors).mapToObj(new DoubleFunction<RandomVariableFromDoubleArray>() { @Override public RandomVariableFromDoubleArray apply(final double x) { return new RandomVariableFromDoubleArray(x); } }).toArray(RandomVariable[]::new); <extra_id_0> } public static DiscountCurveInterpolation createDiscountCurveFromZeroRates( final String name, final LocalDate referenceDate, final double[] times, final RandomVariable[] givenZeroRates, final boolean[] isParameter, final InterpolationMethod interpolationMethod, final ExtrapolationMethod extrapolationMethod, final InterpolationEntity interpolationEntity) { final RandomVariable[] givenDiscountFactors = new RandomVariable[givenZeroRates.length];