QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <mcamericanengine.hpp>
Public Member Functions | |
AmericanPathPricer (ext::shared_ptr< Payoff > payoff, Size polynomialOrder, LsmBasisSystem::PolynomialType polynomialType) | |
Real | state (const Path &path, Size t) const override |
Real | operator() (const Path &path, Size t) const override |
std::vector< ext::function< Real(Real)> > | basisSystem () const override |
Public Member Functions inherited from EarlyExercisePathPricer< Path > | |
virtual | ~EarlyExercisePathPricer ()=default |
virtual Real | operator() (const Path &path, Size t) const=0 |
virtual StateType | state (const Path &path, Size t) const=0 |
virtual std::vector< ext::function< Real(StateType)> > | basisSystem () const=0 |
Protected Member Functions | |
Real | payoff (Real state) const |
Protected Attributes | |
Real | scalingValue_ = 1.0 |
const ext::shared_ptr< Payoff > | payoff_ |
std::vector< ext::function< Real(Real)> > | v_ |
Additional Inherited Members | |
Public Types inherited from EarlyExercisePathPricer< Path > | |
typedef EarlyExerciseTraits< Path >::StateType | StateType |
Definition at line 85 of file mcamericanengine.hpp.
AmericanPathPricer | ( | ext::shared_ptr< Payoff > | payoff, |
Size | polynomialOrder, | ||
LsmBasisSystem::PolynomialType | polynomialType | ||
) |
Implements EarlyExercisePathPricer< Path >.
Definition at line 63 of file mcamericanengine.cpp.
Implements EarlyExercisePathPricer< Path >.
Definition at line 59 of file mcamericanengine.cpp.
Implements EarlyExercisePathPricer< Path >.
Definition at line 70 of file mcamericanengine.cpp.
|
protected |
Definition at line 99 of file mcamericanengine.hpp.
|
protected |
Definition at line 100 of file mcamericanengine.hpp.
Definition at line 101 of file mcamericanengine.hpp.