Package com.opengamma.analytics.financial.model.finitedifference

Examples of com.opengamma.analytics.financial.model.finitedifference.MarkovChainApprox


          final double[] temp = marketVols.get(i).getFirst();
          final double t = temp[0];
          final double k = temp[1];
          final EuropeanVanillaOption option = new EuropeanVanillaOption(k, t, true);
          final BlackFunctionData data = new BlackFunctionData(forward.getForward(t), 1.0, 0.0);
          final MarkovChainApprox mca = new MarkovChainApprox(vol1, vol1 + deltaVol, lambda12, lambda21, p0, t);
          final double price = mca.priceCEV(data.getForward(), data.getDiscountFactor(), k, beta);
          try {
            modVols[i] = BLACK_IMPLIED_VOL.getImpliedVolatility(data, option, price);
          } catch (final Exception e) {
            modVols[i] = 0.0;
          }
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.financial.model.finitedifference.MarkovChainApprox

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.