/src/main/java/net/finmath/montecarlo/interestrate/products/indices/NumerairePerformanceOnScheduleIndex.java
RandomVariable numeraireRatio = numeraireAtStart.div( numeraireAtEnd) ;
RandomVariable numeraireRatio = numeraireAtEnd.div ( numeraireAtStart ) ;
final Period period = getPeriod(FloatingpointDate.getDateFromFloatingPointDate(model.getReferenceDate(), fixingTime)); final LocalDate paymentDate = period.getPayment(); final double paymentTime = FloatingpointDate.getFloatingPointDateFromDate(model.getReferenceDate().toLocalDate(), paymentDate); final double periodLength = schedule.getDaycountconvention().getDaycountFraction(period.getPeriodStart(), period.getPeriodEnd()); final RandomVariable numeraireAtStart = model.getNumeraire(fixingTime); final RandomVariable numeraireAtEnd = model.getNumeraire(paymentTime); <extra_id_0> if(getName() != null && !model.getModel().getDiscountCurve().getName().equals(getName())) { final AnalyticModel analyticModel = model.getModel().getAnalyticModel(); final DiscountCurve indexDiscountCurve = analyticModel.getDiscountCurve(getName()); final DiscountCurve modelDisountCurve = model.getModel().getDiscountCurve(); final double forwardBondOnIndexCurve = indexDiscountCurve.getDiscountFactor(analyticModel, fixingTime)/indexDiscountCurve.getDiscountFactor(analyticModel, paymentTime); final double forwardBondOnModelCurve = modelDisountCurve.getDiscountFactor(analyticModel, fixingTime)/modelDisountCurve.getDiscountFactor(analyticModel, paymentTime);