Scenario generator that generates an entire path.
More...
#include <orea/scenario/scenariogenerator.hpp>
Scenario generator that generates an entire path.
Definition at line 58 of file scenariogenerator.hpp.
◆ ScenarioPathGenerator()
Constructor.
- Parameters
-
today | Today's date |
dates | Future evaluation dates |
timeGrid | Associated time grid |
Definition at line 62 of file scenariogenerator.hpp.
69 QL_REQUIRE(dates.size() > 0, "empty date vector passed");
70 QL_REQUIRE(dates.front() > today, "date grid must start in the future");
71 }
◆ next()
virtual QuantLib::ext::shared_ptr< Scenario > next |
( |
const Date & |
d | ) |
|
|
overridevirtual |
Return the next scenario for the given date.
Implements ScenarioGenerator.
Definition at line 73 of file scenariogenerator.hpp.
73 {
77 }
81 } else{
83 QL_REQUIRE(it !=
dates_.end(),
"invalid date " << d);
85 }
86 }
virtual std::vector< QuantLib::ext::shared_ptr< Scenario > > nextPath()=0
std::vector< QuantLib::ext::shared_ptr< Scenario > > path_
◆ nextPath()
virtual std::vector< QuantLib::ext::shared_ptr< Scenario > > nextPath |
( |
| ) |
|
|
protectedpure virtual |
◆ today_
◆ dates_
◆ pathStep_
◆ timeGrid_
◆ path_
std::vector<QuantLib::ext::shared_ptr<Scenario> > path_ |
|
protected |