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

Source Code of com.opengamma.analytics.financial.model.volatility.local.LocalVolatilitySurfaceStrike

/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.volatility.local;

import com.opengamma.analytics.financial.model.volatility.surface.Strike;
import com.opengamma.analytics.math.surface.Surface;

/**
*
*/
public class LocalVolatilitySurfaceStrike extends LocalVolatilitySurface<Strike> {

  /**
   * @param surface  The time to maturity should be the first coordinate and the strike the second
   */
  public LocalVolatilitySurfaceStrike(final Surface<Double, Double, Double> surface) {
    super(surface);
  }

  @Override
  public double getVolatility(final double t, final double k) {
    final Strike s = new Strike(k);
    return getVolatility(t, s);
  }

}
TOP

Related Classes of com.opengamma.analytics.financial.model.volatility.local.LocalVolatilitySurfaceStrike

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.