#include <qle/termstructures/optionletstripper1.hpp>
Public Member Functions | |
OptionletStripper1 (const QuantLib::ext::shared_ptr< QuantExt::CapFloorTermVolSurface > &, const QuantLib::ext::shared_ptr< IborIndex > &index, Rate switchStrikes=Null< Rate >(), Real accuracy=1.0e-6, Natural maxIter=100, const Handle< YieldTermStructure > &discount=Handle< YieldTermStructure >(), const VolatilityType type=ShiftedLognormal, const Real displacement=0.0, const optional< VolatilityType > targetVolatilityType=boost::none, const optional< Real > targetDisplacement=boost::none) | |
const Matrix & | capFloorPrices () const |
const Matrix & | capletVols () const |
const Matrix & | capFloorVolatilities () const |
const Matrix & | optionletPrices () const |
Rate | switchStrike () const |
const Handle< YieldTermStructure > & | discountCurve () const |
Public Member Functions inherited from OptionletStripper | |
const std::vector< Rate > & | optionletStrikes (Size i) const override |
const std::vector< Volatility > & | optionletVolatilities (Size i) const override |
const std::vector< Date > & | optionletFixingDates () const override |
const std::vector< Time > & | optionletFixingTimes () const override |
Size | optionletMaturities () const override |
const std::vector< Rate > & | atmOptionletRates () const override |
DayCounter | dayCounter () const override |
Calendar | calendar () const override |
Natural | settlementDays () const override |
BusinessDayConvention | businessDayConvention () const override |
const std::vector< Period > & | optionletFixingTenors () const |
const std::vector< Date > & | optionletPaymentDates () const |
const std::vector< Time > & | optionletAccrualPeriods () const |
ext::shared_ptr< CapFloorTermVolSurface > | termVolSurface () const |
ext::shared_ptr< IborIndex > | index () const |
Real | displacement () const override |
VolatilityType | volatilityType () const override |
const Period & | rateComputationPeriod () const |
LazyObject interface | |
Matrix | capFloorPrices_ |
Matrix | optionletPrices_ |
Matrix | capFloorVols_ |
Matrix | optionletStDevs_ |
Matrix | capletVols_ |
CapFloorMatrix | capFloors_ |
std::vector< std::vector< QuantLib::ext::shared_ptr< SimpleQuote > > > | volQuotes_ |
std::vector< std::vector< QuantLib::ext::shared_ptr< PricingEngine > > > | capFloorEngines_ |
bool | floatingSwitchStrike_ |
bool | capFlooMatrixNotInitialized_ |
Rate | switchStrike_ |
Real | accuracy_ |
Natural | maxIter_ |
const VolatilityType | inputVolatilityType_ |
const Real | inputDisplacement_ |
void | performCalculations () const override |
bool | stripOptionlets (std::vector< Real > &, CapFloor::Type, Size, const Handle< YieldTermStructure > &, Real) const |
Additional Inherited Members | |
Protected Member Functions inherited from OptionletStripper | |
OptionletStripper (const ext::shared_ptr< QuantExt::CapFloorTermVolSurface > &, const ext::shared_ptr< IborIndex > &index, const Handle< YieldTermStructure > &discount=Handle< YieldTermStructure >(), const VolatilityType type=ShiftedLognormal, const Real displacement=0.0, const Period &rateComputationPeriod=0 *Days, const Size onCapSettlementDays=0) | |
virtual void | populateDates () const |
Method to populate the dates, times and accruals that can be overridden in derived classes. More... | |
Protected Attributes inherited from OptionletStripper | |
ext::shared_ptr< CapFloorTermVolSurface > | termVolSurface_ |
ext::shared_ptr< IborIndex > | index_ |
Handle< YieldTermStructure > | discount_ |
Size | nStrikes_ |
Size | nOptionletTenors_ |
std::vector< std::vector< Rate > > | optionletStrikes_ |
std::vector< std::vector< Volatility > > | optionletVolatilities_ |
std::vector< Time > | optionletTimes_ |
std::vector< Date > | optionletDates_ |
std::vector< Period > | optionletTenors_ |
std::vector< Rate > | atmOptionletRate_ |
std::vector< Date > | optionletPaymentDates_ |
std::vector< Time > | optionletAccrualPeriods_ |
std::vector< Period > | capFloorLengths_ |
const VolatilityType | volatilityType_ |
const Real | displacement_ |
const Period | rateComputationPeriod_ |
const Size | onCapSettlementDays_ |
Helper class to strip optionlet (i.e. caplet/floorlet) volatilities (a.k.a. forward-forward volatilities) from the (cap/floor) term volatilities of a CapFloorTermVolSurface.
Definition at line 44 of file optionletstripper1.hpp.
OptionletStripper1 | ( | const QuantLib::ext::shared_ptr< QuantExt::CapFloorTermVolSurface > & | , |
const QuantLib::ext::shared_ptr< IborIndex > & | index, | ||
Rate | switchStrikes = Null<Rate>() , |
||
Real | accuracy = 1.0e-6 , |
||
Natural | maxIter = 100 , |
||
const Handle< YieldTermStructure > & | discount = Handle<YieldTermStructure>() , |
||
const VolatilityType | type = ShiftedLognormal , |
||
const Real | displacement = 0.0 , |
||
const optional< VolatilityType > | targetVolatilityType = boost::none , |
||
const optional< Real > | targetDisplacement = boost::none |
||
) |
Definition at line 33 of file optionletstripper1.cpp.
const Matrix & capFloorPrices | ( | ) | const |
Definition at line 189 of file optionletstripper1.cpp.
const Matrix & capletVols | ( | ) | const |
Definition at line 184 of file optionletstripper1.cpp.
const Matrix & capFloorVolatilities | ( | ) | const |
Definition at line 194 of file optionletstripper1.cpp.
const Matrix & optionletPrices | ( | ) | const |
Definition at line 199 of file optionletstripper1.cpp.
Rate switchStrike | ( | ) | const |
Definition at line 204 of file optionletstripper1.cpp.
const Handle< YieldTermStructure > & discountCurve | ( | ) | const |
Definition at line 60 of file optionletstripper1.hpp.
|
override |
Definition at line 58 of file optionletstripper1.cpp.
|
private |
Definition at line 137 of file optionletstripper1.cpp.
|
mutableprivate |
Definition at line 69 of file optionletstripper1.hpp.
|
private |
Definition at line 69 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 70 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 71 of file optionletstripper1.hpp.
|
private |
Definition at line 71 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 73 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 74 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 75 of file optionletstripper1.hpp.
|
private |
Definition at line 76 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 77 of file optionletstripper1.hpp.
|
mutableprivate |
Definition at line 78 of file optionletstripper1.hpp.
|
private |
Definition at line 79 of file optionletstripper1.hpp.
|
private |
Definition at line 80 of file optionletstripper1.hpp.
|
private |
Definition at line 81 of file optionletstripper1.hpp.
|
private |
Definition at line 82 of file optionletstripper1.hpp.