Abstract Black volatility surface based on moneyness (moneyness defined in subclasses) More...
#include <qle/termstructures/blackvariancesurfacemoneyness.hpp>
Inheritance diagram for BlackVarianceSurfaceMoneyness:
Collaboration diagram for BlackVarianceSurfaceMoneyness:Public Member Functions | |
| BlackVarianceSurfaceMoneyness (const Calendar &cal, const Handle< Quote > &spot, const std::vector< Time > ×, const std::vector< Real > &moneyness, const std::vector< std::vector< Handle< Quote > > > &blackVolMatrix, const DayCounter &dayCounter, bool stickyStrike, bool flatExtrapMoneyness=false) | |
| BlackVarianceSurfaceMoneyness (const Date &referenceDate, const Calendar &cal, const Handle< Quote > &spot, const std::vector< Time > ×, const std::vector< Real > &moneyness, const std::vector< std::vector< Handle< Quote > > > &blackVolMatrix, const DayCounter &dayCounter, bool stickyStrike, bool flatExtrapMoneyness=false) | |
| Moneyness variance surface with a fixed reference date. More... | |
TermStructure interface | |
| Date | maxDate () const override |
VolatilityTermStructure interface | |
| Real | minStrike () const override |
| Real | maxStrike () const override |
Observer interface | |
| void | update () override |
LazyObject interface | |
| void | performCalculations () const override |
Visitability | |
| virtual void | accept (AcyclicVisitor &) override |
Inspectors | |
| bool | stickyStrike_ |
| Handle< Quote > | spot_ |
| std::vector< Time > | times_ |
| std::vector< Real > | moneyness_ |
| bool | flatExtrapMoneyness_ |
| std::vector< std::vector< Handle< Quote > > > | quotes_ |
| Matrix | variances_ |
| Interpolation2D | varianceSurface_ |
| std::vector< QuantLib::Real > | moneyness () const |
| virtual Real | moneyness (Time t, Real strike) const =0 |
| void | init () |
| Real | blackVarianceMoneyness (Time t, Real moneyness) const |
| virtual Real | blackVarianceImpl (Time t, Real strike) const override |
Abstract Black volatility surface based on moneyness (moneyness defined in subclasses)
Definition at line 46 of file blackvariancesurfacemoneyness.hpp.
| BlackVarianceSurfaceMoneyness | ( | const Calendar & | cal, |
| const Handle< Quote > & | spot, | ||
| const std::vector< Time > & | times, | ||
| const std::vector< Real > & | moneyness, | ||
| const std::vector< std::vector< Handle< Quote > > > & | blackVolMatrix, | ||
| const DayCounter & | dayCounter, | ||
| bool | stickyStrike, | ||
| bool | flatExtrapMoneyness = false |
||
| ) |
Moneyness can be defined here as spot moneyness, i.e. K/S or forward moneyness, ie K/F
Definition at line 30 of file blackvariancesurfacemoneyness.cpp.
Here is the call graph for this function:| BlackVarianceSurfaceMoneyness | ( | const Date & | referenceDate, |
| const Calendar & | cal, | ||
| const Handle< Quote > & | spot, | ||
| const std::vector< Time > & | times, | ||
| const std::vector< Real > & | moneyness, | ||
| const std::vector< std::vector< Handle< Quote > > > & | blackVolMatrix, | ||
| const DayCounter & | dayCounter, | ||
| bool | stickyStrike, | ||
| bool | flatExtrapMoneyness = false |
||
| ) |
Moneyness variance surface with a fixed reference date.
Definition at line 39 of file blackvariancesurfacemoneyness.cpp.
Here is the call graph for this function:
|
override |
Definition at line 64 of file blackvariancesurfacemoneyness.hpp.
|
override |
Definition at line 68 of file blackvariancesurfacemoneyness.hpp.
|
override |
Definition at line 69 of file blackvariancesurfacemoneyness.hpp.
|
override |
Definition at line 48 of file blackvariancesurfacemoneyness.cpp.
|
override |
Definition at line 53 of file blackvariancesurfacemoneyness.cpp.
|
overridevirtual |
Definition at line 110 of file blackvariancesurfacemoneyness.hpp.
| std::vector< QuantLib::Real > moneyness | ( | ) | const |
Definition at line 86 of file blackvariancesurfacemoneyness.hpp.
Here is the caller graph for this function:
|
protectedpure virtual |
Implemented in BlackVarianceSurfaceMoneynessSpot, BlackVarianceSurfaceMoneynessForward, and BlackVarianceSurfaceStdDevs.
|
private |
Definition at line 63 of file blackvariancesurfacemoneyness.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 110 of file blackvariancesurfacemoneyness.cpp.
Here is the caller graph for this function:
|
overrideprivatevirtual |
Definition at line 100 of file blackvariancesurfacemoneyness.cpp.
Here is the call graph for this function:
|
protected |
Definition at line 91 of file blackvariancesurfacemoneyness.hpp.
|
protected |
Definition at line 92 of file blackvariancesurfacemoneyness.hpp.
|
protected |
Definition at line 93 of file blackvariancesurfacemoneyness.hpp.
|
protected |
Definition at line 94 of file blackvariancesurfacemoneyness.hpp.
|
protected |
Definition at line 95 of file blackvariancesurfacemoneyness.hpp.
|
private |
Definition at line 103 of file blackvariancesurfacemoneyness.hpp.
|
mutableprivate |
Definition at line 104 of file blackvariancesurfacemoneyness.hpp.
|
mutableprivate |
Definition at line 105 of file blackvariancesurfacemoneyness.hpp.