Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
mccamfxforwardengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2023 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file mccamfxforwardengine.hpp
20 \brief MC CAM engine for FX Forward instrument
21*/
22
23#pragma once
24
26
30
31namespace QuantExt {
32
34public:
36 const Handle<CrossAssetModel>& model, const Currency& domesticCcy, const Currency& foreignCcy,
37 const Currency& npvCcy, const SequenceType calibrationPathGenerator, const SequenceType pricingPathGenerator,
38 const Size calibrationSamples, const Size pricingSamples, const Size calibrationSeed, const Size pricingSeed,
39 const Size polynomOrder, const LsmBasisSystem::PolynomialType polynomType,
40 const SobolBrownianGenerator::Ordering ordering = SobolBrownianGenerator::Steps,
41 const SobolRsg::DirectionIntegers directionIntegers = SobolRsg::JoeKuoD7,
42 const std::vector<Handle<YieldTermStructure>>& discountCurves = std::vector<Handle<YieldTermStructure>>(),
43 const std::vector<Date>& simulationDates = std::vector<Date>(),
44 const std::vector<Size>& externalModelIndices = std::vector<Size>(), const bool minimalObsDate = true,
45 const RegressorModel regressorModel = RegressorModel::Simple,
46 const Real regressionVarianceCutoff = Null<Real>());
47
48 void calculate() const override;
49 const Handle<CrossAssetModel>& model() const { return model_; }
50
51private:
53};
54
55} // namespace QuantExt
const Handle< CrossAssetModel > & model() const
Handle< CrossAssetModel > model_
cross asset model
defaultable fxforward instrument
base MC engine for multileg (option) instruments
base class for multi path generators