#include <qle/models/kienitzlawsonswaynesabrpdedensity.hpp>
Public Member Functions | |
KienitzLawsonSwayneSabrPdeDensity (const Real alpha, const Real beta, const Real nu, const Real rho, const Real forward, const Real expiryTime, const Real displacement, const Size zSteps, const Size tSteps, const Real nStdDev) | |
Real | alpha () const |
Real | beta () const |
Real | nu () const |
Real | rho () const |
Real | forward () const |
Real | expiryTime () const |
Real | displacement () const |
Size | zSteps () const |
Size | tSteps () const |
Real | nStdDev () const |
std::vector< Real > | callPrices (const std::vector< Real > &strikes) const |
std::vector< Real > | putPrices (const std::vector< Real > &strikes) const |
Real | inverseCumulative (const Real p) const |
const Array & | sabrProb () const |
Real | zMin () const |
Real | zMax () const |
Real | hh () const |
Real | pL () const |
Real | pR () const |
Real | theta0 () const |
Real | yf (const Real f) const |
Real | fy (const Real y) const |
Real | yz (const Real z) const |
Real | zy (const Real y) const |
Private Member Functions | |
void | calculate () |
void | PDE_method (const Array &fm, const Array &Ccm, const Array &Gamma_Vec, const Real dt, const Size Nj) |
void | solveTimeStep_LS (const Array &fm, const Array &cm, const Array &Em, const Real dt, const Array &PP_in, const Real PL_in, const Real PR_in, const Size n, Array &PP_out, Real &PL_out, Real &PR_out) |
void | tridag (const Array &a, const Array &b, const Array &c, const Array &R, Array &u, const Size n, const bool firstLastRZero) |
Private Attributes | |
const Real | alpha_ |
const Real | beta_ |
const Real | nu_ |
const Real | rho_ |
const Real | forward_ |
const Real | expiryTime_ |
const Real | displacement_ |
const Size | zSteps_ |
const Size | tSteps_ |
const Real | nStdDev_ |
Real | zMin_ |
Real | zMax_ |
Real | hh_ |
Real | pL_ |
Real | pR_ |
Real | theta0_ |
Array | SABR_Prob_Vec_ |
Array | SABR_Cum_Prob_Vec_ |
Definition at line 36 of file kienitzlawsonswaynesabrpdedensity.hpp.
KienitzLawsonSwayneSabrPdeDensity | ( | const Real | alpha, |
const Real | beta, | ||
const Real | nu, | ||
const Real | rho, | ||
const Real | forward, | ||
const Real | expiryTime, | ||
const Real | displacement, | ||
const Size | zSteps, | ||
const Size | tSteps, | ||
const Real | nStdDev | ||
) |
Definition at line 25 of file kienitzlawsonswaynesabrpdedensity.cpp.
Real alpha | ( | ) | const |
Definition at line 43 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real beta | ( | ) | const |
Definition at line 44 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real nu | ( | ) | const |
Definition at line 45 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real rho | ( | ) | const |
Definition at line 46 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real forward | ( | ) | const |
Definition at line 47 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real expiryTime | ( | ) | const |
Definition at line 48 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real displacement | ( | ) | const |
Definition at line 49 of file kienitzlawsonswaynesabrpdedensity.hpp.
Size zSteps | ( | ) | const |
Definition at line 50 of file kienitzlawsonswaynesabrpdedensity.hpp.
Size tSteps | ( | ) | const |
Definition at line 51 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real nStdDev | ( | ) | const |
Definition at line 52 of file kienitzlawsonswaynesabrpdedensity.hpp.
std::vector< Real > callPrices | ( | const std::vector< Real > & | strikes | ) | const |
Definition at line 242 of file kienitzlawsonswaynesabrpdedensity.cpp.
std::vector< Real > putPrices | ( | const std::vector< Real > & | strikes | ) | const |
Definition at line 286 of file kienitzlawsonswaynesabrpdedensity.cpp.
Real inverseCumulative | ( | const Real | p | ) | const |
Definition at line 227 of file kienitzlawsonswaynesabrpdedensity.cpp.
const Array & sabrProb | ( | ) | const |
Definition at line 62 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real zMin | ( | ) | const |
Definition at line 63 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real zMax | ( | ) | const |
Definition at line 64 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real hh | ( | ) | const |
Definition at line 65 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real pL | ( | ) | const |
Definition at line 66 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real pR | ( | ) | const |
Definition at line 67 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real theta0 | ( | ) | const |
Definition at line 68 of file kienitzlawsonswaynesabrpdedensity.hpp.
Real yf | ( | const Real | f | ) | const |
Definition at line 46 of file kienitzlawsonswaynesabrpdedensity.cpp.
Real fy | ( | const Real | y | ) | const |
Definition at line 51 of file kienitzlawsonswaynesabrpdedensity.cpp.
Real yz | ( | const Real | z | ) | const |
Real zy | ( | const Real | y | ) | const |
|
private |
Definition at line 166 of file kienitzlawsonswaynesabrpdedensity.cpp.
|
private |
Definition at line 125 of file kienitzlawsonswaynesabrpdedensity.cpp.
|
private |
Definition at line 97 of file kienitzlawsonswaynesabrpdedensity.cpp.
|
private |
Definition at line 72 of file kienitzlawsonswaynesabrpdedensity.cpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 85 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 86 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 86 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 87 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 89 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 89 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 89 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 89 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 89 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 89 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 90 of file kienitzlawsonswaynesabrpdedensity.hpp.
|
private |
Definition at line 90 of file kienitzlawsonswaynesabrpdedensity.hpp.