Builder for a Lognormal EQ model component. More...
#include <ored/model/eqbsbuilder.hpp>
Public Member Functions | |
EqBsBuilder (const QuantLib::ext::shared_ptr< ore::data::Market > &market, const QuantLib::ext::shared_ptr< EqBsData > &data, const QuantLib::Currency &baseCcy, const std::string &configuration=Market::defaultConfiguration, const std::string &referenceCalibrationGrid="") | |
Constructor. More... | |
Real | error () const |
Return calibration error. More... | |
Inspectors | |
std::string | eqName () |
QuantLib::ext::shared_ptr< QuantExt::EqBsParametrization > | parametrization () const |
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > | optionBasket () const |
Public Member Functions inherited from ModelBuilder | |
void | recalibrate () const |
virtual void | forceRecalculate () |
virtual bool | requiresRecalibration () const=0 |
ModelBuilder interface | |
const QuantLib::ext::shared_ptr< ore::data::Market > | market_ |
const std::string | configuration_ |
const QuantLib::ext::shared_ptr< EqBsData > | data_ |
const std::string | referenceCalibrationGrid_ |
const QuantLib::Currency | baseCcy_ |
Real | error_ |
QuantLib::ext::shared_ptr< QuantExt::EqBsParametrization > | parametrization_ |
std::vector< bool > | optionActive_ |
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > | optionBasket_ |
Array | optionExpiries_ |
Handle< Quote > | eqSpot_ |
Handle< Quote > | fxSpot_ |
Handle< YieldTermStructure > | ytsRate_ |
Handle< YieldTermStructure > | ytsDiv_ |
Handle< BlackVolTermStructure > | eqVol_ |
std::vector< QuantLib::Real > | eqVolCache_ |
bool | forceCalibration_ = false |
QuantLib::ext::shared_ptr< QuantExt::MarketObserver > | marketObserver_ |
void | forceRecalculate () override |
bool | requiresRecalibration () const override |
void | setCalibrationDone () const |
void | performCalculations () const override |
Real | optionStrike (const Size j) const |
Date | optionExpiry (const Size j) const |
void | buildOptionBasket () const |
bool | volSurfaceChanged (const bool updateCache) const |
Builder for a Lognormal EQ model component.
This class is a utility to turn an EQ model component's description into an EQ model parametrization which can be used to ultimately instantiate a CrossAssetModel.
Definition at line 48 of file eqbsbuilder.hpp.
EqBsBuilder | ( | const QuantLib::ext::shared_ptr< ore::data::Market > & | market, |
const QuantLib::ext::shared_ptr< EqBsData > & | data, | ||
const QuantLib::Currency & | baseCcy, | ||
const std::string & | configuration = Market::defaultConfiguration , |
||
const std::string & | referenceCalibrationGrid = "" |
||
) |
Constructor.
market | Market object |
data | EQ model parameters/description |
baseCcy | base currency for calibration |
configuration | Market configuration to use |
referenceCalibrationGrid | the reference calibration grid |
Definition at line 39 of file eqbsbuilder.cpp.
Real error | ( | ) | const |
Return calibration error.
Definition at line 108 of file eqbsbuilder.cpp.
std::string eqName | ( | ) |
QuantLib::ext::shared_ptr< QuantExt::EqBsParametrization > parametrization | ( | ) | const |
Definition at line 113 of file eqbsbuilder.cpp.
std::vector< QuantLib::ext::shared_ptr< BlackCalibrationHelper > > optionBasket | ( | ) | const |
Definition at line 117 of file eqbsbuilder.cpp.
|
overridevirtual |
Reimplemented from ModelBuilder.
Definition at line 234 of file eqbsbuilder.cpp.
|
overridevirtual |
Implements ModelBuilder.
Definition at line 122 of file eqbsbuilder.cpp.
void setCalibrationDone | ( | ) | const |
Definition at line 134 of file eqbsbuilder.cpp.
|
overrideprivate |
Definition at line 127 of file eqbsbuilder.cpp.
|
private |
Definition at line 141 of file eqbsbuilder.cpp.
|
private |
Definition at line 154 of file eqbsbuilder.cpp.
|
private |
Definition at line 187 of file eqbsbuilder.cpp.
Definition at line 165 of file eqbsbuilder.cpp.
|
private |
Definition at line 89 of file eqbsbuilder.hpp.
|
private |
Definition at line 90 of file eqbsbuilder.hpp.
|
private |
Definition at line 91 of file eqbsbuilder.hpp.
|
private |
Definition at line 92 of file eqbsbuilder.hpp.
|
private |
Definition at line 93 of file eqbsbuilder.hpp.
|
private |
Definition at line 96 of file eqbsbuilder.hpp.
|
mutableprivate |
Definition at line 97 of file eqbsbuilder.hpp.
|
mutableprivate |
Definition at line 100 of file eqbsbuilder.hpp.
|
mutableprivate |
Definition at line 101 of file eqbsbuilder.hpp.
|
mutableprivate |
Definition at line 102 of file eqbsbuilder.hpp.
|
private |
Definition at line 105 of file eqbsbuilder.hpp.
|
private |
Definition at line 105 of file eqbsbuilder.hpp.
|
private |
Definition at line 106 of file eqbsbuilder.hpp.
|
private |
Definition at line 106 of file eqbsbuilder.hpp.
|
private |
Definition at line 107 of file eqbsbuilder.hpp.
|
mutableprivate |
Definition at line 110 of file eqbsbuilder.hpp.
|
private |
Definition at line 113 of file eqbsbuilder.hpp.
|
private |
Definition at line 116 of file eqbsbuilder.hpp.