Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
qle
pricingengines
intrinsicascotengine.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2020 Quaternion Risk Managment 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 qle/pricingengines/intrinsicascotengine.hpp
20
\brief intrinsic engine for Ascots
21
*/
22
23
#pragma once
24
25
#include <
qle/instruments/ascot.hpp
>
26
27
#include <ql/instruments/payoffs.hpp>
28
#include <ql/processes/blackscholesprocess.hpp>
29
#include <ql/termstructures/defaulttermstructure.hpp>
30
#include <ql/termstructures/volatility/equityfx/blackconstantvol.hpp>
31
#include <ql/termstructures/yield/flatforward.hpp>
32
33
namespace
QuantExt
{
34
35
using namespace
QuantLib
;
36
37
//! Intrinsic engine for Ascots
38
/* \ingroup engines
39
40
\test the correctness of the returned value is tested by
41
checking it against known results in a few corner cases.
42
*/
43
44
class
IntrinsicAscotEngine
:
public
Ascot::engine
{
45
public
:
46
IntrinsicAscotEngine
(
const
Handle<YieldTermStructure>& discountCurve);
47
void
calculate
()
const override
;
48
49
private
:
50
Handle<YieldTermStructure>
discountCurve_
;
51
52
};
53
54
}
// namespace QuantExt
ascot.hpp
Ascot class.
QuantExt::Ascot::engine
Definition:
ascot.hpp:87
QuantExt::IntrinsicAscotEngine
Intrinsic engine for Ascots.
Definition:
intrinsicascotengine.hpp:44
QuantExt::IntrinsicAscotEngine::discountCurve_
Handle< YieldTermStructure > discountCurve_
Definition:
intrinsicascotengine.hpp:50
QuantExt::IntrinsicAscotEngine::calculate
void calculate() const override
Definition:
intrinsicascotengine.cpp:33
QuantExt
Definition:
namespaces.docs:19
QuantLib
Definition:
colombia.cpp:21
Generated by
Doxygen
1.9.5