QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <flatvol.hpp>
Public Member Functions | |
FlatVolFactory (Real longTermCorrelation, Real beta, std::vector< Time > times, std::vector< Volatility > vols, Handle< YieldTermStructure > yieldCurve, Spread displacement) | |
ext::shared_ptr< MarketModel > | create (const EvolutionDescription &, Size numberOfFactors) const override |
void | update () override |
Public Member Functions inherited from MarketModelFactory | |
~MarketModelFactory () override=default | |
virtual ext::shared_ptr< MarketModel > | create (const EvolutionDescription &, Size numberOfFactors) const =0 |
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 () |
Private Attributes | |
Real | longTermCorrelation_ |
Real | beta_ |
std::vector< Time > | times_ |
std::vector< Volatility > | vols_ |
Interpolation | volatility_ |
Handle< YieldTermStructure > | yieldCurve_ |
Spread | displacement_ |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Definition at line 66 of file flatvol.hpp.
FlatVolFactory | ( | Real | longTermCorrelation, |
Real | beta, | ||
std::vector< Time > | times, | ||
std::vector< Volatility > | vols, | ||
Handle< YieldTermStructure > | yieldCurve, | ||
Spread | displacement | ||
) |
|
overridevirtual |
Implements MarketModelFactory.
Definition at line 165 of file flatvol.cpp.
|
overridevirtual |
This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.
Implements Observer.
Definition at line 201 of file flatvol.cpp.
|
private |
Definition at line 86 of file flatvol.hpp.
|
private |
Definition at line 86 of file flatvol.hpp.
|
private |
Definition at line 88 of file flatvol.hpp.
|
private |
Definition at line 89 of file flatvol.hpp.
|
private |
Definition at line 90 of file flatvol.hpp.
|
private |
Definition at line 92 of file flatvol.hpp.
|
private |
Definition at line 93 of file flatvol.hpp.