QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <mcamericanbasketengine.hpp>
Public Member Functions | |
AmericanBasketPathPricer (Size assetNumber, ext::shared_ptr< Payoff > payoff, Size polynomialOrder=2, LsmBasisSystem::PolynomialType polynomialType=LsmBasisSystem::Monomial) | |
Array | state (const MultiPath &path, Size t) const override |
Real | operator() (const MultiPath &path, Size t) const override |
std::vector< ext::function< Real(Array)> > | basisSystem () const override |
Public Member Functions inherited from EarlyExercisePathPricer< MultiPath > | |
virtual | ~EarlyExercisePathPricer ()=default |
virtual Real | operator() (const MultiPath &path, Size t) const=0 |
virtual StateType | state (const MultiPath &path, Size t) const=0 |
virtual std::vector< ext::function< Real(StateType)> > | basisSystem () const=0 |
Protected Member Functions | |
Real | payoff (const Array &state) const |
Protected Attributes | |
const Size | assetNumber_ |
const ext::shared_ptr< Payoff > | payoff_ |
Real | scalingValue_ = 1.0 |
std::vector< ext::function< Real(Array)> > | v_ |
Additional Inherited Members | |
Public Types inherited from EarlyExercisePathPricer< MultiPath > | |
typedef EarlyExerciseTraits< MultiPath >::StateType | StateType |
Definition at line 104 of file mcamericanbasketengine.hpp.
AmericanBasketPathPricer | ( | Size | assetNumber, |
ext::shared_ptr< Payoff > | payoff, | ||
Size | polynomialOrder = 2 , |
||
LsmBasisSystem::PolynomialType | polynomialType = LsmBasisSystem::Monomial |
||
) |
Implements EarlyExercisePathPricer< MultiPath >.
Definition at line 55 of file mcamericanbasketengine.cpp.
Implements EarlyExercisePathPricer< MultiPath >.
Definition at line 76 of file mcamericanbasketengine.cpp.
Implements EarlyExercisePathPricer< MultiPath >.
Definition at line 82 of file mcamericanbasketengine.cpp.
|
protected |
Definition at line 121 of file mcamericanbasketengine.hpp.
|
protected |
Definition at line 122 of file mcamericanbasketengine.hpp.
|
protected |
Definition at line 124 of file mcamericanbasketengine.hpp.
Definition at line 125 of file mcamericanbasketengine.hpp.