41 const QuantLib::ext::shared_ptr<Context>& context,
const std::string&
script =
"",
42 const bool interactive =
false,
43 const std::set<std::string>& stickyCloseOutStates = {})
49 std::vector<QuantExt::RandomVariable>
simulatePath(
const std::vector<QuantLib::Real>& pathTimes,
50 std::vector<std::vector<QuantExt::RandomVariable>>& paths,
51 const std::vector<size_t>& relevantPathIndex,
52 const std::vector<size_t>& relevantTimeIndex)
override;
56 const QuantLib::ext::shared_ptr<Model>
model_;
58 const QuantLib::ext::shared_ptr<Context>
context_;
additional interface for amc enabled models
abstract syntax tree for payoff scripting
const std::set< std::string > stickyCloseOutStates_
const QuantLib::ext::shared_ptr< Context > context_
std::vector< QuantExt::RandomVariable > simulatePath(const std::vector< QuantLib::Real > &pathTimes, std::vector< std::vector< QuantExt::RandomVariable > > &paths, const std::vector< size_t > &relevantPathIndex, const std::vector< size_t > &relevantTimeIndex) override
std::map< std::string, std::vector< ValueType > > stickyCloseOutRunArrays_
QuantLib::Currency npvCurrency() override
const std::string script_
ScriptedInstrumentAmcCalculator(const std::string &npv, const QuantLib::ext::shared_ptr< Model > &model, const ASTNodePtr ast, const QuantLib::ext::shared_ptr< Context > &context, const std::string &script="", const bool interactive=false, const std::set< std::string > &stickyCloseOutStates={})
const QuantLib::ext::shared_ptr< Model > model_
std::map< std::string, ValueType > stickyCloseOutRunScalars_
script engine context holding variable names and values
Currency and instrument specific conventions/defaults.
interface for model against which a script can be run
QuantLib::ext::shared_ptr< ASTNode > ASTNodePtr
Serializable Credit Default Swap.