QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Market-model engine for upper-bound estimation. More...
#include <upperboundengine.hpp>
Public Member Functions | |
UpperBoundEngine (ext::shared_ptr< MarketModelEvolver > evolver, std::vector< ext::shared_ptr< MarketModelEvolver > > innerEvolvers, const MarketModelMultiProduct &underlying, const MarketModelExerciseValue &rebate, const MarketModelMultiProduct &hedge, const MarketModelExerciseValue &hedgeRebate, const ExerciseStrategy< CurveState > &hedgeStrategy, Real initialNumeraireValue) | |
void | multiplePathValues (Statistics &stats, Size outerPaths, Size innerPaths) |
std::pair< Real, Real > | singlePathValue (Size innerPaths) |
Private Member Functions | |
Real | collectCashFlows (Size currentStep, Real principalInNumerairePortfolio, Size beginProduct, Size endProduct) const |
Private Attributes | |
ext::shared_ptr< MarketModelEvolver > | evolver_ |
std::vector< ext::shared_ptr< MarketModelEvolver > > | innerEvolvers_ |
MultiProductComposite | composite_ |
Real | initialNumeraireValue_ |
Size | underlyingSize_ |
Size | rebateSize_ |
Size | hedgeSize_ |
Size | hedgeRebateSize_ |
Size | underlyingOffset_ |
Size | rebateOffset_ |
Size | hedgeOffset_ |
Size | hedgeRebateOffset_ |
Size | numberOfProducts_ |
Size | numberOfSteps_ |
std::valarray< bool > | isExerciseTime_ |
std::vector< Size > | numberCashFlowsThisStep_ |
std::vector< std::vector< MarketModelMultiProduct::CashFlow > > | cashFlowsGenerated_ |
std::vector< MarketModelDiscounter > | discounters_ |
Market-model engine for upper-bound estimation.
Definition at line 43 of file upperboundengine.hpp.
UpperBoundEngine | ( | ext::shared_ptr< MarketModelEvolver > | evolver, |
std::vector< ext::shared_ptr< MarketModelEvolver > > | innerEvolvers, | ||
const MarketModelMultiProduct & | underlying, | ||
const MarketModelExerciseValue & | rebate, | ||
const MarketModelMultiProduct & | hedge, | ||
const MarketModelExerciseValue & | hedgeRebate, | ||
const ExerciseStrategy< CurveState > & | hedgeStrategy, | ||
Real | initialNumeraireValue | ||
) |
void multiplePathValues | ( | Statistics & | stats, |
Size | outerPaths, | ||
Size | innerPaths | ||
) |
Definition at line 175 of file upperboundengine.cpp.
|
private |
Definition at line 319 of file upperboundengine.cpp.
|
private |
Definition at line 63 of file upperboundengine.hpp.
|
private |
Definition at line 64 of file upperboundengine.hpp.
|
private |
Definition at line 65 of file upperboundengine.hpp.
|
private |
Definition at line 67 of file upperboundengine.hpp.
|
private |
Definition at line 68 of file upperboundengine.hpp.
|
private |
Definition at line 68 of file upperboundengine.hpp.
|
private |
Definition at line 68 of file upperboundengine.hpp.
|
private |
Definition at line 68 of file upperboundengine.hpp.
|
private |
Definition at line 69 of file upperboundengine.hpp.
|
private |
Definition at line 69 of file upperboundengine.hpp.
|
private |
Definition at line 69 of file upperboundengine.hpp.
|
private |
Definition at line 69 of file upperboundengine.hpp.
|
private |
Definition at line 70 of file upperboundengine.hpp.
|
private |
Definition at line 71 of file upperboundengine.hpp.
|
private |
Definition at line 72 of file upperboundengine.hpp.
|
private |
Definition at line 75 of file upperboundengine.hpp.
|
private |
Definition at line 77 of file upperboundengine.hpp.
|
private |
Definition at line 78 of file upperboundengine.hpp.