#include <qle/interpolators/optioninterpolator2d.hpp>
Inheritance diagram for OptionInterpolator2d< InterpolatorStrike, InterpolatorExpiry >:
Collaboration diagram for OptionInterpolator2d< InterpolatorStrike, InterpolatorExpiry >:Public Member Functions | |
| OptionInterpolator2d (const QuantLib::Date &referenceDate, const QuantLib::DayCounter &dayCounter, bool lowerStrikeConstExtrap=true, bool upperStrikeConstExtrap=true, const InterpolatorStrike &interpolatorStrike=InterpolatorStrike(), const InterpolatorExpiry &interpolatorExpiry=InterpolatorExpiry(), const QuantLib::Date &baseDate=QuantLib::Date()) | |
| OptionInterpolator2d default Constructor. More... | |
| OptionInterpolator2d (const QuantLib::Date &referenceDate, const QuantLib::DayCounter &dayCounter, const std::vector< QuantLib::Date > &dates, const std::vector< QuantLib::Real > &strikes, const std::vector< QuantLib::Real > &values, bool lowerStrikeConstExtrap=true, bool upperStrikeConstExtrap=true, const InterpolatorStrike &interpolatorStrike=InterpolatorStrike(), const InterpolatorExpiry &interpolatorExpiry=InterpolatorExpiry(), const QuantLib::Date &baseDate=QuantLib::Date()) | |
| OptionInterpolator2d Constructor with dates. More... | |
| OptionInterpolator2d (const QuantLib::Date &referenceDate, const QuantLib::Calendar &calendar, const QuantLib::BusinessDayConvention &bdc, const QuantLib::DayCounter &dayCounter, const std::vector< QuantLib::Period > &tenors, const std::vector< QuantLib::Real > &strikes, const std::vector< QuantLib::Real > &values, bool lowerStrikeConstExtrap=true, bool upperStrikeConstExtrap=true, const InterpolatorStrike &interpolatorStrike=InterpolatorStrike(), const InterpolatorExpiry &interpolatorExpiry=InterpolatorExpiry(), const QuantLib::Date &baseDate=QuantLib::Date()) | |
| OptionInterpolator2d Constructor with Tenors. More... | |
| OptionInterpolator2d (const OptionInterpolator2d &)=delete | |
| OptionInterpolator2d & | operator= (const OptionInterpolator2d &)=delete |
| void | initialise (const std::vector< QuantLib::Date > &dates, const std::vector< QuantLib::Real > &strikes, const std::vector< QuantLib::Real > &values) |
| Initialise. More... | |
| void | initialise (const std::vector< QuantLib::Period > &tenors, const std::vector< QuantLib::Real > &strikes, const std::vector< QuantLib::Real > &values, const QuantLib::Calendar &calendar, const QuantLib::BusinessDayConvention &bdc) |
Public Member Functions inherited from OptionInterpolatorBase | |
| virtual | ~OptionInterpolatorBase () |
| OptionInterpolatorBase (const QuantLib::Date &referenceDate) | |
| virtual QuantLib::Real | getValue (QuantLib::Time t, QuantLib::Real strike) const =0 |
| virtual access methods More... | |
| virtual QuantLib::Real | getValue (QuantLib::Date d, QuantLib::Real strike) const =0 |
| const QuantLib::Date & | referenceDate () const |
| std::vector< QuantLib::Time > | times () const |
| std::vector< QuantLib::Date > | expiries () const |
| std::vector< std::vector< QuantLib::Real > > | strikes () const |
| std::vector< std::vector< QuantLib::Real > > | values () const |
Getters | |
| std::vector< QuantLib::Interpolation > | interpolations_ |
| QuantLib::DayCounter | dayCounter_ |
| bool | lowerStrikeConstExtrap_ |
| bool | upperStrikeConstExtrap_ |
| InterpolatorStrike | interpolatorStrike_ |
| InterpolatorExpiry | interpolatorExpiry_ |
| bool | initialised_ |
| QuantLib::Date | baseDate_ |
| std::vector< QuantLib::Time > | times () const |
| std::vector< QuantLib::Date > | expiries () const |
| std::vector< std::vector< QuantLib::Real > > | strikes () const |
| std::vector< std::vector< QuantLib::Real > > | values () const |
| QuantLib::DayCounter | dayCounter () const |
| QuantLib::Real | getValue (QuantLib::Time t, QuantLib::Real strike) const override |
| virtual access methods More... | |
| QuantLib::Real | getValue (QuantLib::Date d, QuantLib::Real strike) const override |
| QuantLib::Real | getValueForStrike (QuantLib::Real strike, const std::vector< QuantLib::Real > &strks, const std::vector< QuantLib::Real > &vars, const QuantLib::Interpolation &intrp) const |
Additional Inherited Members | |
Protected Attributes inherited from OptionInterpolatorBase | |
| std::vector< QuantLib::Date > | expiries_ |
| std::vector< QuantLib::Time > | times_ |
| std::vector< std::vector< QuantLib::Real > > | strikes_ |
| std::vector< std::vector< QuantLib::Real > > | values_ |
| QuantLib::Date | referenceDate_ |
Option surface interpolator
Definition at line 71 of file optioninterpolator2d.hpp.
| OptionInterpolator2d | ( | const QuantLib::Date & | referenceDate, |
| const QuantLib::DayCounter & | dayCounter, | ||
| bool | lowerStrikeConstExtrap = true, |
||
| bool | upperStrikeConstExtrap = true, |
||
| const InterpolatorStrike & | interpolatorStrike = InterpolatorStrike(), |
||
| const InterpolatorExpiry & | interpolatorExpiry = InterpolatorExpiry(), |
||
| const QuantLib::Date & | baseDate = QuantLib::Date() |
||
| ) |
OptionInterpolator2d default Constructor.
Definition at line 75 of file optioninterpolator2d.hpp.
| OptionInterpolator2d | ( | const QuantLib::Date & | referenceDate, |
| const QuantLib::DayCounter & | dayCounter, | ||
| const std::vector< QuantLib::Date > & | dates, | ||
| const std::vector< QuantLib::Real > & | strikes, | ||
| const std::vector< QuantLib::Real > & | values, | ||
| bool | lowerStrikeConstExtrap = true, |
||
| bool | upperStrikeConstExtrap = true, |
||
| const InterpolatorStrike & | interpolatorStrike = InterpolatorStrike(), |
||
| const InterpolatorExpiry & | interpolatorExpiry = InterpolatorExpiry(), |
||
| const QuantLib::Date & | baseDate = QuantLib::Date() |
||
| ) |
OptionInterpolator2d Constructor with dates.
Definition at line 146 of file optioninterpolator2d.hpp.
Here is the call graph for this function:| OptionInterpolator2d | ( | const QuantLib::Date & | referenceDate, |
| const QuantLib::Calendar & | calendar, | ||
| const QuantLib::BusinessDayConvention & | bdc, | ||
| const QuantLib::DayCounter & | dayCounter, | ||
| const std::vector< QuantLib::Period > & | tenors, | ||
| const std::vector< QuantLib::Real > & | strikes, | ||
| const std::vector< QuantLib::Real > & | values, | ||
| bool | lowerStrikeConstExtrap = true, |
||
| bool | upperStrikeConstExtrap = true, |
||
| const InterpolatorStrike & | interpolatorStrike = InterpolatorStrike(), |
||
| const InterpolatorExpiry & | interpolatorExpiry = InterpolatorExpiry(), |
||
| const QuantLib::Date & | baseDate = QuantLib::Date() |
||
| ) |
OptionInterpolator2d Constructor with Tenors.
Definition at line 162 of file optioninterpolator2d.hpp.
Here is the call graph for this function:
|
delete |
|
delete |
| void initialise | ( | const std::vector< QuantLib::Date > & | dates, |
| const std::vector< QuantLib::Real > & | strikes, | ||
| const std::vector< QuantLib::Real > & | values | ||
| ) |
Initialise.
Definition at line 177 of file optioninterpolator2d.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void initialise | ( | const std::vector< QuantLib::Period > & | tenors, |
| const std::vector< QuantLib::Real > & | strikes, | ||
| const std::vector< QuantLib::Real > & | values, | ||
| const QuantLib::Calendar & | calendar, | ||
| const QuantLib::BusinessDayConvention & | bdc | ||
| ) |
Definition at line 263 of file optioninterpolator2d.hpp.
| std::vector< QuantLib::Time > times |
Definition at line 364 of file optioninterpolator2d.hpp.
Here is the call graph for this function:| std::vector< QuantLib::Date > expiries |
Definition at line 369 of file optioninterpolator2d.hpp.
Here is the call graph for this function:| std::vector< std::vector< QuantLib::Real > > strikes |
Definition at line 374 of file optioninterpolator2d.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< std::vector< QuantLib::Real > > values |
Definition at line 379 of file optioninterpolator2d.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::DayCounter dayCounter | ( | ) | const |
Definition at line 122 of file optioninterpolator2d.hpp.
Here is the caller graph for this function:
|
overridevirtual |
virtual access methods
Implements OptionInterpolatorBase.
Definition at line 297 of file optioninterpolator2d.hpp.
|
overridevirtual |
Implements OptionInterpolatorBase.
Definition at line 347 of file optioninterpolator2d.hpp.
|
private |
Definition at line 277 of file optioninterpolator2d.hpp.
|
protected |
Definition at line 128 of file optioninterpolator2d.hpp.
|
private |
Definition at line 131 of file optioninterpolator2d.hpp.
|
private |
Definition at line 135 of file optioninterpolator2d.hpp.
|
private |
Definition at line 136 of file optioninterpolator2d.hpp.
|
private |
Definition at line 137 of file optioninterpolator2d.hpp.
|
private |
Definition at line 138 of file optioninterpolator2d.hpp.
|
private |
Definition at line 139 of file optioninterpolator2d.hpp.
|
private |
Definition at line 140 of file optioninterpolator2d.hpp.