#include <qle/methods/projectedbufferedmultipathgenerator.hpp>
◆ ProjectedBufferedMultiPathGenerator()
ProjectedBufferedMultiPathGenerator |
( |
const std::vector< Size > & |
stateProcessProjection, |
|
|
const QuantLib::ext::shared_ptr< std::vector< std::vector< QuantLib::Path > > > & |
bufferedPaths |
|
) |
| |
If projection(j) = i for state process indices i from the projected process and j from the original process, then stateProcessProjection[i] = j, i.e. a state process component index from the projected model is mapped to the state process component index of the original model.
Definition at line 23 of file projectedbufferedmultipathgenerator.cpp.
27
28 QL_REQUIRE(
bufferedPaths_,
"ProjectedBufferedMultiPathGenerator: no buffered paths given (null)");
29 QL_REQUIRE(!
bufferedPaths_->empty(),
"ProjectedBufferedMultiPathGenerator: at least one buffered path required");
30
31 QL_REQUIRE(!stateProcessProjection.empty(),
32 "ProjectedBufferedMultiPathGenerator: state process projection is empty");
33
34 maxTargetIndex_ = *std::max_element(stateProcessProjection.begin(), stateProcessProjection.end());
35
37}
const QuantLib::ext::shared_ptr< std::vector< std::vector< QuantLib::Path > > > bufferedPaths_
Sample< MultiPath > next_
const std::vector< Size > stateProcessProjection_
◆ next()
const Sample< MultiPath > & next |
( |
| ) |
const |
|
overridevirtual |
◆ reset()
◆ stateProcessProjection_
const std::vector<Size> stateProcessProjection_ |
|
private |
◆ bufferedPaths_
const QuantLib::ext::shared_ptr<std::vector<std::vector<QuantLib::Path> > > bufferedPaths_ |
|
private |
◆ maxTargetIndex_
◆ currentPath_
◆ next_