Examples of VectorRootFinder


Examples of com.opengamma.analytics.math.rootfinding.VectorRootFinder

  }

  @Test
  public void testOnSmileySurface() {
    final double forward = FORWARD_CURVE.getForward(expiry5);
    final VectorRootFinder testSolver = new BroydenVectorRootFinder(1.0e-6, 1.0e-6, 50000);
    final double vol1 = STRIKE_VOLSURFACE.getVolatility(expiry5, 40);
    final double vol2 = STRIKE_VOLSURFACE.getVolatility(expiry5, 41);
    final DisplacedDiffusionModel logBlack = new DisplacedDiffusionModel(forward, expiry5, 40, vol1, 41, vol2, 0.26, 0.01, testSolver);

    //TODO really - more magic numbers
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.