#include <qle/termstructures/sabrstrippedoptionletadapter.hpp>
Inheritance diagram for SabrStrippedOptionletAdapter< TimeInterpolator >:
Collaboration diagram for SabrStrippedOptionletAdapter< TimeInterpolator >:Public Member Functions | |
| SabrStrippedOptionletAdapter (const QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > &sob, const QuantExt::SabrParametricVolatility::ModelVariant modelVariant, const TimeInterpolator &ti=TimeInterpolator(), const boost::optional< QuantLib::VolatilityType > outputVolatilityType=boost::none, const std::vector< std::vector< std::pair< Real, bool > > > &initialModelParameters={}, const QuantLib::Size maxCalibrationAttempts=10, const QuantLib::Real exitEarlyErrorThreshold=0.005, const QuantLib::Real maxAcceptableError=0.05) | |
| SabrStrippedOptionletAdapter (const QuantLib::Date &referenceDate, const QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > &sob, const QuantExt::SabrParametricVolatility::ModelVariant modelVariant, const TimeInterpolator &ti=TimeInterpolator(), const boost::optional< QuantLib::VolatilityType > outputVolatilityType=boost::none, const std::vector< std::vector< std::pair< Real, bool > > > &initialModelParameters={}, const QuantLib::Size maxCalibrationAttempts=10, const QuantLib::Real exitEarlyErrorThreshold=0.005, const QuantLib::Real maxAcceptableError=0.05) | |
TermStructure interface | |
| QuantLib::Date | maxDate () const override |
VolatilityTermStructure interface | |
| QuantLib::Rate | minStrike () const override |
| QuantLib::Rate | maxStrike () const override |
LazyObject interface | |
| void | update () override |
| void | performCalculations () const override |
Observer interface | |
| void | deepUpdate () override |
Inspectors | |
| QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > | optionletBase () const |
| QuantLib::ext::shared_ptr< QuantExt::ParametricVolatility > | parametricVolatility () const |
OptionletVolatilityStructure interface | |
| QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > | optionletBase_ |
| Base optionlet object that provides the stripped optionlet volatilities. More... | |
| TimeInterpolator | ti_ |
| The interpolation object in the time direction. More... | |
| QuantExt::SabrParametricVolatility::ModelVariant | modelVariant_ |
| SABR specific inputs. More... | |
| boost::optional< QuantLib::VolatilityType > | outputVolatilityType_ |
| std::vector< std::vector< std::pair< Real, bool > > > | initialModelParameters_ |
| QuantLib::Size | maxCalibrationAttempts_ |
| QuantLib::Real | exitEarlyErrorThreshold_ |
| QuantLib::Real | maxAcceptableError_ |
| std::map< Real, QuantLib::ext::shared_ptr< ParametricVolatilitySmileSection > > | cache_ |
| State. More... | |
| QuantLib::ext::shared_ptr< ParametricVolatility > | parametricVolatility_ |
| std::unique_ptr< FlatExtrapolation > | atmInterpolation_ |
| QuantLib::VolatilityType | volatilityType () const override |
| QuantLib::Real | displacement () const override |
| QuantLib::ext::shared_ptr< QuantLib::SmileSection > | smileSectionImpl (QuantLib::Time optionTime) const override |
| QuantLib::Volatility | volatilityImpl (QuantLib::Time length, QuantLib::Rate strike) const override |
Definition at line 43 of file sabrstrippedoptionletadapter.hpp.
| SabrStrippedOptionletAdapter | ( | const QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > & | sob, |
| const QuantExt::SabrParametricVolatility::ModelVariant | modelVariant, | ||
| const TimeInterpolator & | ti = TimeInterpolator(), |
||
| const boost::optional< QuantLib::VolatilityType > | outputVolatilityType = boost::none, |
||
| const std::vector< std::vector< std::pair< Real, bool > > > & | initialModelParameters = {}, |
||
| const QuantLib::Size | maxCalibrationAttempts = 10, |
||
| const QuantLib::Real | exitEarlyErrorThreshold = 0.005, |
||
| const QuantLib::Real | maxAcceptableError = 0.05 |
||
| ) |
Constructor that does not take a reference date. The settlement days is derived from sob and the term structure will be a moving term structure.
Definition at line 135 of file sabrstrippedoptionletadapter.hpp.
| SabrStrippedOptionletAdapter | ( | const QuantLib::Date & | referenceDate, |
| const QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > & | sob, | ||
| const QuantExt::SabrParametricVolatility::ModelVariant | modelVariant, | ||
| const TimeInterpolator & | ti = TimeInterpolator(), |
||
| const boost::optional< QuantLib::VolatilityType > | outputVolatilityType = boost::none, |
||
| const std::vector< std::vector< std::pair< Real, bool > > > & | initialModelParameters = {}, |
||
| const QuantLib::Size | maxCalibrationAttempts = 10, |
||
| const QuantLib::Real | exitEarlyErrorThreshold = 0.005, |
||
| const QuantLib::Real | maxAcceptableError = 0.05 |
||
| ) |
Constructor taking an explicit referenceDate and the term structure will therefore be not moving.
Definition at line 151 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 166 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 171 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 176 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 181 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 186 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 190 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 197 of file sabrstrippedoptionletadapter.hpp.
|
override |
Definition at line 237 of file sabrstrippedoptionletadapter.hpp.
| QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > optionletBase |
Definition at line 244 of file sabrstrippedoptionletadapter.hpp.
| QuantLib::ext::shared_ptr< QuantExt::ParametricVolatility > parametricVolatility | ( | ) | const |
Definition at line 101 of file sabrstrippedoptionletadapter.hpp.
|
overrideprotected |
Definition at line 250 of file sabrstrippedoptionletadapter.hpp.
|
overrideprotected |
Definition at line 267 of file sabrstrippedoptionletadapter.hpp.
|
private |
Base optionlet object that provides the stripped optionlet volatilities.
Definition at line 115 of file sabrstrippedoptionletadapter.hpp.
|
private |
The interpolation object in the time direction.
Definition at line 118 of file sabrstrippedoptionletadapter.hpp.
|
private |
SABR specific inputs.
Definition at line 121 of file sabrstrippedoptionletadapter.hpp.
|
private |
Definition at line 122 of file sabrstrippedoptionletadapter.hpp.
|
private |
Definition at line 123 of file sabrstrippedoptionletadapter.hpp.
|
private |
Definition at line 124 of file sabrstrippedoptionletadapter.hpp.
|
private |
Definition at line 125 of file sabrstrippedoptionletadapter.hpp.
|
private |
Definition at line 126 of file sabrstrippedoptionletadapter.hpp.
|
mutableprivate |
State.
Definition at line 129 of file sabrstrippedoptionletadapter.hpp.
|
mutableprivate |
Definition at line 130 of file sabrstrippedoptionletadapter.hpp.
|
mutableprivate |
Definition at line 131 of file sabrstrippedoptionletadapter.hpp.