| 1 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 | |
| 3 | /* |
| 4 | Copyright (C) 2006 Banca Profilo S.p.A. |
| 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 | /*! \file forwardmeasureprocess.hpp |
| 21 | \brief forward-measure stochastic processes |
| 22 | */ |
| 23 | |
| 24 | #ifndef quantlib_forward_measure_processes_hpp |
| 25 | #define quantlib_forward_measure_processes_hpp |
| 26 | |
| 27 | #include <ql/stochasticprocess.hpp> |
| 28 | |
| 29 | namespace QuantLib { |
| 30 | |
| 31 | //! forward-measure stochastic process |
| 32 | /*! stochastic process whose dynamics are expressed in the forward |
| 33 | measure. |
| 34 | |
| 35 | \ingroup processes |
| 36 | */ |
| 37 | class ForwardMeasureProcess : public StochasticProcess { |
| 38 | public: |
| 39 | virtual void setForwardMeasureTime(Time); |
| 40 | Time getForwardMeasureTime() const; |
| 41 | protected: |
| 42 | ForwardMeasureProcess() = default; |
| 43 | explicit ForwardMeasureProcess(Time T) : T_(T) {} |
| 44 | explicit ForwardMeasureProcess( |
| 45 | const ext::shared_ptr<discretization>&); |
| 46 | Time T_; |
| 47 | }; |
| 48 | |
| 49 | //! forward-measure 1-D stochastic process |
| 50 | /*! 1-D stochastic process whose dynamics are expressed in the |
| 51 | forward measure. |
| 52 | |
| 53 | \ingroup processes |
| 54 | */ |
| 55 | class ForwardMeasureProcess1D : public StochasticProcess1D { |
| 56 | public: |
| 57 | virtual void setForwardMeasureTime(Time); |
| 58 | Time getForwardMeasureTime() const; |
| 59 | protected: |
| 60 | ForwardMeasureProcess1D() = default; |
| 61 | explicit ForwardMeasureProcess1D(Time T) : T_(T) {} |
| 62 | explicit ForwardMeasureProcess1D( |
| 63 | const ext::shared_ptr<discretization>&); |
| 64 | Time T_; |
| 65 | }; |
| 66 | |
| 67 | } |
| 68 | |
| 69 | |
| 70 | #endif |
| 71 | |