Examples of sabrVolatility()


Examples of org.jquantlib.termstructures.volatilities.Sabr.sabrVolatility()

        final double beta = 0.5;
        final double nu = 0.34;
        final double rho = -0.11;

        final Sabr sabr = new Sabr();
        double sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.16,sabrVol, 1.0e-6);

        strike = 0.0598;
        sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.15755519,sabrVol, 1.0e-6);
View Full Code Here

Examples of org.jquantlib.termstructures.volatilities.Sabr.sabrVolatility()

        final Sabr sabr = new Sabr();
        double sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.16,sabrVol, 1.0e-6);

        strike = 0.0598;
        sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.15755519,sabrVol, 1.0e-6);

        strike = 0.0198;
        sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.2373848,sabrVol, 1.0e-6);
View Full Code Here

Examples of org.jquantlib.termstructures.volatilities.Sabr.sabrVolatility()

        strike = 0.0598;
        sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.15755519,sabrVol, 1.0e-6);

        strike = 0.0198;
        sabrVol = sabr.sabrVolatility(strike, forward, expiryTime, alpha, beta, nu, rho);
        assertEquals(0.2373848,sabrVol, 1.0e-6);

  }
}
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.