Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Functions
normalfreeboundarysabr.cpp File Reference
#include "toplevelfixture.hpp"
#include <qle/models/normalsabr.hpp>
#include <boost/make_shared.hpp>
#include <boost/test/unit_test.hpp>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (testNormalFreeBoundarySabr)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( testNormalFreeBoundarySabr  )

Definition at line 34 of file normalfreeboundarysabr.cpp.

34 {
35
36 BOOST_TEST_MESSAGE("Testing normal free boundary SABR...");
37
38 Real forward = 0.0, expiryTime = 5.0, alpha = 0.0050, nu = 0.52, rho = -0.23;
39
40 BOOST_TEST_MESSAGE("vol=" << normalFreeBoundarySabrVolatility(0.0, forward, expiryTime, alpha, nu, rho));
41
42 // WIP...
43
44 // for (Real strike = -0.10; strike < 0.10 + 1E-5; strike += 0.0001) {
45 // BOOST_TEST_MESSAGE(strike << " " << normalSabrVolatility(strike, forward, expiryTime, alpha, nu, rho) << " "
46 // << normalFreeBoundarySabrVolatility(strike, forward, expiryTime, alpha, nu, rho));
47 // }
48}
Real normalFreeBoundarySabrVolatility(Rate strike, Rate forward, Time expiryTime, Real alpha, Real nu, Real rho)
Definition: normalsabr.cpp:118
+ Here is the call graph for this function: