Scenario Generator using LGM model paths. More...
#include <orea/scenario/lgmscenariogenerator.hpp>
Public Member Functions | |
LgmScenarioGenerator (QuantLib::ext::shared_ptr< QuantExt::LGM > model, QuantLib::ext::shared_ptr< QuantExt::MultiPathGeneratorBase > multiPathGenerator, QuantLib::ext::shared_ptr< ScenarioFactory > scenarioFactory, QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > simMarketConfig, Date today, DateGrid grid) | |
Constructor. More... | |
~LgmScenarioGenerator () | |
Destructor. More... | |
std::vector< QuantLib::ext::shared_ptr< Scenario > > | nextPath () override |
void | reset () override |
Reset the generator so calls to next() return the first scenario. More... | |
Public Member Functions inherited from ScenarioPathGenerator | |
ScenarioPathGenerator (Date today, const vector< Date > &dates, TimeGrid timeGrid) | |
Constructor. More... | |
virtual QuantLib::ext::shared_ptr< Scenario > | next (const Date &d) override |
Return the next scenario for the given date. More... | |
Public Member Functions inherited from ScenarioGenerator | |
virtual | ~ScenarioGenerator () |
Default destructor. More... | |
virtual QuantLib::ext::shared_ptr< Scenario > | next (const Date &d)=0 |
Return the next scenario for the given date. More... | |
virtual void | reset ()=0 |
Reset the generator so calls to next() return the first scenario. More... | |
Private Attributes | |
QuantLib::ext::shared_ptr< QuantExt::LGM > | model_ |
QuantLib::ext::shared_ptr< QuantExt::MultiPathGeneratorBase > | pathGenerator_ |
QuantLib::ext::shared_ptr< ScenarioFactory > | scenarioFactory_ |
QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > | simMarketConfig_ |
Additional Inherited Members | |
virtual std::vector< QuantLib::ext::shared_ptr< Scenario > > | nextPath ()=0 |
Protected Attributes inherited from ScenarioPathGenerator | |
Date | today_ |
vector< Date > | dates_ |
Size | pathStep_ |
TimeGrid | timeGrid_ |
std::vector< QuantLib::ext::shared_ptr< Scenario > > | path_ |
Scenario Generator using LGM model paths.
The generator expects
Definition at line 50 of file lgmscenariogenerator.hpp.
LgmScenarioGenerator | ( | QuantLib::ext::shared_ptr< QuantExt::LGM > | model, |
QuantLib::ext::shared_ptr< QuantExt::MultiPathGeneratorBase > | multiPathGenerator, | ||
QuantLib::ext::shared_ptr< ScenarioFactory > | scenarioFactory, | ||
QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > | simMarketConfig, | ||
Date | today, | ||
DateGrid | grid | ||
) |
Constructor.
Definition at line 26 of file lgmscenariogenerator.cpp.
~LgmScenarioGenerator | ( | ) |
|
overridevirtual |
Implements ScenarioPathGenerator.
Definition at line 36 of file lgmscenariogenerator.cpp.
|
overridevirtual |
Reset the generator so calls to next() return the first scenario.
This allows re-generation of scenarios if required.
Implements ScenarioGenerator.
Definition at line 60 of file lgmscenariogenerator.hpp.
|
private |
Definition at line 63 of file lgmscenariogenerator.hpp.
|
private |
Definition at line 64 of file lgmscenariogenerator.hpp.
|
private |
Definition at line 65 of file lgmscenariogenerator.hpp.
|
private |
Definition at line 66 of file lgmscenariogenerator.hpp.