QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
marketmodelvolprocess.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Mark Joshi
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20#ifndef quantlib_market_model_vol_process_hpp
21#define quantlib_market_model_vol_process_hpp
22#include <ql/types.hpp>
23#include <vector>
24
25namespace QuantLib
26{
27
28
29 /*!
30 Displaced diffusion LMM with uncorrelated vol process. Called "Shifted BGM" with Heston vol by Brace in "Engineering BGM."
31 Vol process is an external input.
32
33 */
35 {
36 public:
38 virtual ~MarketModelVolProcess() = default;
39
40 virtual Size variatesPerStep()=0;
41 virtual Size numberSteps()=0;
42
43 virtual void nextPath() =0;
44 virtual Real nextstep(const std::vector<Real>& variates)=0;
45 virtual Real stepSd() const =0;
46
47 virtual const std::vector<Real>& stateVariables() const=0;
48 virtual Size numberStateVariables() const=0;
49
50 private:
51
52 };
53
54}
55
56#endif
virtual Size variatesPerStep()=0
virtual Real nextstep(const std::vector< Real > &variates)=0
virtual Size numberStateVariables() const =0
virtual Real stepSd() const =0
virtual ~MarketModelVolProcess()=default
virtual const std::vector< Real > & stateVariables() const =0
QL_REAL Real
real number
Definition: types.hpp:50
std::size_t Size
size of a container
Definition: types.hpp:58
Definition: any.hpp:35
Custom types.