Examples of Moneyness


Examples of com.opengamma.analytics.financial.model.volatility.surface.Moneyness

  }

  @Override
  public double getVolatility(final double t, final double k) {
    final double f = _fc.getForward(t);
    final Moneyness x = new Moneyness(k, f);
    return getVolatility(t, x);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.model.volatility.surface.Moneyness

   * @param m the moneyness. value moneyness  mv = F(t,T)/F(0,T), and strike moneyness mk = k/F(0,T) where k is the strike
   *  and F(t, T) is the value of the forward for expiry at time T at time t.
   * @return The local volatility
   */
  public double getVolatilityForMoneyness(final double t, final double m) {
    final Moneyness s = new Moneyness(m);
    return getVolatility(t, s);
  }
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.