Examples of fairLiborFraction()


Examples of org.jquantlib.instruments.BMASwap.fairLiborFraction()

                               libor3m, libor3m.dayCounter(),
                               bmaSchedule, bma, vars.bmaDayCounter);
            swap.setPricingEngine(new DiscountingSwapEngine(libor3m.termStructure()));

            /*@Real*/ final double expectedFraction = bmaData[i].rate/100;
            /*@Real*/ final double estimatedFraction = swap.fairLiborFraction();
            /*@Real*/ final double error = Math.abs(expectedFraction-estimatedFraction);
            if (error > tolerance) {
              throw new RuntimeException(
                  String.format("%d %s %s %f %s %f %s %f %s %f",
                            bmaData[i].n, " year(s) BMA swap:\n",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.