26 const Handle<CrossAssetModel>& model,
const std::vector<Currency>& currencies,
const Currency& npvCcy,
28 const Size pricingSamples,
const Size calibrationSeed,
const Size pricingSeed,
const Size polynomOrder,
29 const LsmBasisSystem::PolynomialType polynomType,
const SobolBrownianGenerator::Ordering ordering,
30 const SobolRsg::DirectionIntegers directionIntegers,
const std::vector<Handle<YieldTermStructure>>& discountCurves,
31 const std::vector<Date>& simulationDates,
const std::vector<Size>& externalModelIndices,
const bool minimalObsDate,
32 const RegressorModel regressorModel,
const Real regressionVarianceCutoff)
33 :
McMultiLegBaseEngine(model, calibrationPathGenerator, pricingPathGenerator, calibrationSamples, pricingSamples,
34 calibrationSeed, pricingSeed, polynomOrder, polynomType, ordering, directionIntegers,
35 discountCurves, simulationDates, externalModelIndices, minimalObsDate, regressorModel,
36 regressionVarianceCutoff),
37 currencies_(currencies), npvCcy_(npvCcy) {
39 for (
auto const& h : discountCurves)
48 for (Size i = 0; i <
arguments_.payer.size(); ++i) {
59 fxSpot =
model_->fxbs(npvCcyIndex - 1)->fxSpotToday()->value();
const Instrument::results * results_
McCamCurrencySwapEngine(const Handle< CrossAssetModel > &model, const std::vector< Currency > ¤cies, const Currency &npvCcy, const SequenceType calibrationPathGenerator, const SequenceType pricingPathGenerator, const Size calibrationSamples, const Size pricingSamples, const Size calibrationSeed, const Size pricingSeed, const Size polynomOrder, const LsmBasisSystem::PolynomialType polynomType, const SobolBrownianGenerator::Ordering ordering=SobolBrownianGenerator::Steps, const SobolRsg::DirectionIntegers directionIntegers=SobolRsg::JoeKuoD7, const std::vector< Handle< YieldTermStructure > > &discountCurves=std::vector< Handle< YieldTermStructure > >(), const std::vector< Date > &simulationDates=std::vector< Date >(), const std::vector< Size > &externalModelIndices=std::vector< Size >(), const bool minimalObsDate=true, const RegressorModel regressorModel=RegressorModel::Simple, const Real regressionVarianceCutoff=Null< Real >())
void calculate() const override
std::vector< Currency > currency_
QuantLib::ext::shared_ptr< Exercise > exercise_
Handle< CrossAssetModel > model_
QuantLib::ext::shared_ptr< AmcCalculator > amcCalculator() const
std::vector< bool > payer_
MC CAM engine for currency swaps.
Swap::arguments * arguments_