Package com.opengamma.analytics.financial.model.option.pricing.analytic

Examples of com.opengamma.analytics.financial.model.option.pricing.analytic.BjerksundStenslandModel.impliedVolatility()


            if (quoteTypeIsCallPutStrike) {
              optionIsCall = strike > callAboveStrike ? true : false;
            }
            final double vol;
            if (isAmerican) {
              vol = americanModel.impliedVolatility(price, spot, strike, -Math.log(zerobond) / t, Math.log(forward / spot) / t, t, optionIsCall);
            } else {
              final double fwdPrice = price / zerobond;
              vol = BlackFormulaRepository.impliedVolatility(fwdPrice, forward, strike, t, optionIsCall);
            }
            tList.add(t);
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.