Package com.opengamma.analytics.financial.model.volatility

Examples of com.opengamma.analytics.financial.model.volatility.SimpleOptionData


      final YieldAndDiscountCurve discountCurve = ycb.getCurve(caplets[i].getFundingCurveName());
      final double fwd = caplets[i].accept(PRC, ycb);
      final double t = caplets[i].getFixingTime();
      // Vol is at fixing time, discounting from payment. This included the year fraction
      final double df = discountCurve.getDiscountFactor(caplets[i].getPaymentTime()) * caplets[i].getPaymentYearFraction();
      options[i] = new SimpleOptionData(fwd, caplets[i].getStrike(), t, df, caplets[i].isCap());
    }
    return options;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.financial.model.volatility.SimpleOptionData

Copyright © 2018 www.massapicom. 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.