Examples of StandardSmileSurfaceDataBundle


Examples of com.opengamma.analytics.financial.model.volatility.smile.fitting.sabr.StandardSmileSurfaceDataBundle

    final double[] uniqueExpiries = getUniqueExpiries(volatilitySurface);
    final double[] uniqueStrikes = getUniqueStrikes(volatilitySurface);
    final Pair<double[][], double[][]> strikesAndValues = getStrikesAndValues(uniqueExpiries, uniqueStrikes, volatilitySurface);
    // Convert vols and strikes to double[][],
    // noting that different expiries may have different populated strikes
    return new StandardSmileSurfaceDataBundle(forwardCurve, uniqueExpiries, strikesAndValues.getFirst(), strikesAndValues.getSecond());
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.model.volatility.smile.fitting.sabr.StandardSmileSurfaceDataBundle

    final double[] uniqueExpiries = getUniqueExpiries(volatilitySurface);
    final double[] uniqueStrikes = getUniqueStrikes(volatilitySurface);
    final Triple<double[], double[][], double[][]> strikesAndValues = getStrikesAndValues(uniqueExpiries, uniqueStrikes, volatilitySurface, minNumberOfStrikes);
    // Convert vols and strikes to double[][],
    // noting that different expiries may have different populated strikes
    return new StandardSmileSurfaceDataBundle(forwardCurve, strikesAndValues.getFirst(), strikesAndValues.getSecond(), strikesAndValues.getThird());
  }
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.