Examples of fairRate()


Examples of org.jquantlib.instruments.VanillaSwap.fairRate()

                .withFixedLegConvention(vars.fixedLegConvention)
                .withFixedLegTerminationDateConvention(vars.fixedLegConvention)
                .value();

            /*@Rate*/ final double expectedRate  = swapData[i].rate/100;
            /*@Rate*/ final double estimatedRate = swap.fairRate();
            /*@Spread*/ final double error = Math.abs(expectedRate-estimatedRate);
            if (error > tolerance) {
              throw new RuntimeException(
              String.format("%d %s %s %f %s %f %s %f %s %f",
                      swapData[i].n, " year(s) swap:\n",
View Full Code Here

Examples of org.jquantlib.instruments.VanillaSwap.fairRate()

              .withFixedLegConvention(vars.fixedLegConvention)
              .withFixedLegTerminationDateConvention(vars.fixedLegConvention)
                  .value();

          /*@Rate*/ final double expectedRate  = swapData[i].rate/100;
          /*@Rate*/ final double estimatedRate = swap.fairRate();
          /*@Real*/ final double tolerance = 1.0e-9;
          if (Math.abs(expectedRate-estimatedRate) > tolerance) {
            throw new RuntimeException(
                String.format("%s %d %s %s %f %s %s %f",
                  "before LIBOR fixing:\n",
View Full Code Here

Examples of org.jquantlib.instruments.VanillaSwap.fairRate()

              .withFixedLegConvention(vars.fixedLegConvention)
              .withFixedLegTerminationDateConvention(vars.fixedLegConvention)
                  .value();

          /*@Rate*/ final double expectedRate  = swapData[i].rate/100;
          /*@Rate*/ final double estimatedRate = swap.fairRate();
          /*@Real*/ final double tolerance = 1.0e-9;
          if (Math.abs(expectedRate-estimatedRate) > tolerance) {
            throw new RuntimeException(
                String.format("%s %d %s %s %f %s %s %f",
                          "after LIBOR fixing:\n",
View Full Code Here

Examples of org.jquantlib.instruments.VanillaSwap.fairRate()

              .withFixedLegCalendar(vars.calendar)
              .withFloatingLegCalendar(vars.calendar)
                  .value();

          /*@Rate*/ final double expectedRate  = swapData[i].rate/100;
          /*@Rate*/ final double estimatedRate = swap.fairRate();
          /*@Spread*/ final double error = Math.abs(expectedRate-estimatedRate);
          /*@Real*/ final double tolerance = 1.0e-9;

         
          if (error > tolerance) {
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.