QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <strippedoptionlet.hpp>
Public Member Functions | |
StrippedOptionlet (Natural settlementDays, const Calendar &calendar, BusinessDayConvention bdc, ext::shared_ptr< IborIndex > iborIndex, const std::vector< Date > &optionletDates, const std::vector< Rate > &strikes, std::vector< std::vector< Handle< Quote > > >, DayCounter dc, VolatilityType type=ShiftedLognormal, Real displacement=0.0) | |
StrippedOptionlet (Natural settlementDays, const Calendar &calendar, BusinessDayConvention bdc, ext::shared_ptr< IborIndex > iborIndex, const std::vector< Date > &optionletDates, const std::vector< std::vector< Rate > > &strikes, std::vector< std::vector< Handle< Quote > > >, DayCounter dc, VolatilityType type=ShiftedLognormal, Real displacement=0.0) | |
virtual const std::vector< Rate > & | optionletStrikes (Size i) const =0 |
virtual const std::vector< Volatility > & | optionletVolatilities (Size i) const =0 |
virtual const std::vector< Date > & | optionletFixingDates () const =0 |
virtual const std::vector< Time > & | optionletFixingTimes () const =0 |
virtual Size | optionletMaturities () const =0 |
virtual const std::vector< Rate > & | atmOptionletRates () const =0 |
virtual DayCounter | dayCounter () const =0 |
virtual Calendar | calendar () const =0 |
virtual Natural | settlementDays () const =0 |
virtual BusinessDayConvention | businessDayConvention () const =0 |
virtual VolatilityType | volatilityType () const =0 |
virtual Real | displacement () const =0 |
Public Member Functions inherited from LazyObject | |
LazyObject () | |
~LazyObject () override=default | |
void | update () override |
bool | isCalculated () const |
void | forwardFirstNotificationOnly () |
void | alwaysForwardNotifications () |
void | recalculate () |
void | freeze () |
void | unfreeze () |
Public Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
Observable (Observable &&)=delete | |
Observable & | operator= (Observable &&)=delete |
virtual | ~Observable ()=default |
void | notifyObservers () |
Public Member Functions inherited from Observer | |
Observer ()=default | |
Observer (const Observer &) | |
Observer & | operator= (const Observer &) |
virtual | ~Observer () |
std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
void | registerWithObservables (const ext::shared_ptr< Observer > &) |
Size | unregisterWith (const ext::shared_ptr< Observable > &) |
void | unregisterWithAll () |
virtual void | update ()=0 |
virtual void | deepUpdate () |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Protected Member Functions inherited from LazyObject | |
virtual void | calculate () const |
Protected Attributes inherited from LazyObject | |
bool | calculated_ = false |
bool | frozen_ = false |
bool | alwaysForward_ |
Helper class to wrap in a StrippedOptionletBase object a matrix of exogenously calculated optionlet (i.e. caplet/floorlet) volatilities (a.k.a. forward-forward volatilities).
Definition at line 39 of file strippedoptionlet.hpp.
StrippedOptionlet | ( | Natural | settlementDays, |
const Calendar & | calendar, | ||
BusinessDayConvention | bdc, | ||
ext::shared_ptr< IborIndex > | iborIndex, | ||
const std::vector< Date > & | optionletDates, | ||
const std::vector< Rate > & | strikes, | ||
std::vector< std::vector< Handle< Quote > > > | v, | ||
DayCounter | dc, | ||
VolatilityType | type = ShiftedLognormal , |
||
Real | displacement = 0.0 |
||
) |
Definition at line 32 of file strippedoptionlet.cpp.
StrippedOptionlet | ( | Natural | settlementDays, |
const Calendar & | calendar, | ||
BusinessDayConvention | bdc, | ||
ext::shared_ptr< IborIndex > | iborIndex, | ||
const std::vector< Date > & | optionletDates, | ||
const std::vector< std::vector< Rate > > & | strikes, | ||
std::vector< std::vector< Handle< Quote > > > | v, | ||
DayCounter | dc, | ||
VolatilityType | type = ShiftedLognormal , |
||
Real | displacement = 0.0 |
||
) |
Implements StrippedOptionletBase.
Definition at line 129 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 138 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 147 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 152 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 157 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 161 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 168 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 172 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 176 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 180 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 184 of file strippedoptionlet.cpp.
|
overridevirtual |
Implements StrippedOptionletBase.
Definition at line 188 of file strippedoptionlet.cpp.
|
private |
Definition at line 84 of file strippedoptionlet.cpp.
|
private |
Definition at line 117 of file strippedoptionlet.cpp.
|
overrideprivatevirtual |
This method must implement any calculations which must be (re)done in order to calculate the desired results.
Implements LazyObject.
Definition at line 123 of file strippedoptionlet.cpp.
|
private |
Definition at line 85 of file strippedoptionlet.hpp.
|
private |
Definition at line 86 of file strippedoptionlet.hpp.
|
private |
Definition at line 87 of file strippedoptionlet.hpp.
|
private |
Definition at line 88 of file strippedoptionlet.hpp.
|
private |
Definition at line 89 of file strippedoptionlet.hpp.
|
private |
Definition at line 90 of file strippedoptionlet.hpp.
|
private |
Definition at line 91 of file strippedoptionlet.hpp.
|
private |
Definition at line 93 of file strippedoptionlet.hpp.
|
private |
Definition at line 94 of file strippedoptionlet.hpp.
|
private |
Definition at line 95 of file strippedoptionlet.hpp.
|
mutableprivate |
Definition at line 96 of file strippedoptionlet.hpp.
|
private |
Definition at line 97 of file strippedoptionlet.hpp.
Definition at line 99 of file strippedoptionlet.hpp.
|
mutableprivate |
Definition at line 100 of file strippedoptionlet.hpp.