#include <qle/termstructures/blackvolsurfacedelta.hpp>
|
| | InterpolatedSmileSection (Real spot, Real rd, Real rf, Time t, const std::vector< Real > &strikes, const std::vector< Volatility > &vols, InterpolationMethod method, bool flatExtrapolation=false) |
| | ctor More...
|
| |
| Volatility | volatility (Real strike) const override |
| |
| | FxSmileSection () |
| |
| | FxSmileSection (Real spot, Real rd, Real rf, Time t) |
| |
| virtual | ~FxSmileSection () |
| |
| virtual Volatility | volatility (Real strike) const =0 |
| |
| DiscountFactor | domesticDiscount () const |
| |
| DiscountFactor | foreignDiscount () const |
| |
Definition at line 41 of file blackvolsurfacedelta.hpp.
◆ InterpolationMethod
Supported interpolation methods.
| Enumerator |
|---|
| Linear | |
| NaturalCubic | |
| FinancialCubic | |
| CubicSpline | |
Definition at line 44 of file blackvolsurfacedelta.hpp.
◆ InterpolatedSmileSection()
ctor
Definition at line 31 of file blackvolsurfacedelta.cpp.
36
43 interpolator_ = Cubic(CubicInterpolation::Kruger,
true, CubicInterpolation::SecondDerivative, 0.0,
44 CubicInterpolation::FirstDerivative)
48 else {
49 QL_FAIL("Invalid method " << (int)method);
50 }
51}
std::vector< Real > strikes_
const std::vector< Real > & strikes() const
std::vector< Volatility > vols_
Interpolation interpolator_
◆ volatility()
| Volatility volatility |
( |
Real |
strike | ) |
const |
|
overridevirtual |
◆ strikes()
| const std::vector< Real > & strikes |
( |
| ) |
const |
◆ volatilities()
| const std::vector< Volatility > & volatilities |
( |
| ) |
const |
◆ interpolator_
| Interpolation interpolator_ |
|
private |
◆ strikes_
| std::vector<Real> strikes_ |
|
private |
◆ vols_
| std::vector<Volatility> vols_ |
|
private |
◆ flatExtrapolation_