| 1 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 | |
| 3 | /* |
| 4 | Copyright (C) 2010 Hachemi Benyahia |
| 5 | Copyright (C) 2010 DeriveXperts SAS |
| 6 | |
| 7 | This file is part of QuantLib, a free-software/open-source library |
| 8 | for financial quantitative analysts and developers - http://quantlib.org/ |
| 9 | |
| 10 | QuantLib is free software: you can redistribute it and/or modify it |
| 11 | under the terms of the QuantLib license. You should have received a |
| 12 | copy of the license along with this program; if not, please email |
| 13 | <quantlib-dev@lists.sf.net>. The license is also available online at |
| 14 | <http://quantlib.org/license.shtml>. |
| 15 | |
| 16 | This program is distributed in the hope that it will be useful, but WITHOUT |
| 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 18 | FOR A PARTICULAR PURPOSE. See the license for more details. |
| 19 | */ |
| 20 | |
| 21 | /*! \file alimikhailhaqcopula.hpp |
| 22 | \brief Ali-Mikhail-Haq copula |
| 23 | */ |
| 24 | |
| 25 | #ifndef quantlib_math_ali_mikhail_haq_copula_hpp |
| 26 | #define quantlib_math_ali_mikhail_haq_copula_hpp |
| 27 | |
| 28 | #include <ql/types.hpp> |
| 29 | #include <functional> |
| 30 | |
| 31 | namespace QuantLib { |
| 32 | |
| 33 | //! Ali-Mikhail-Haq copula |
| 34 | class AliMikhailHaqCopula { |
| 35 | public: |
| 36 | /*! \deprecated Use `auto` or `decltype` instead. |
| 37 | Deprecated in version 1.29. |
| 38 | */ |
| 39 | QL_DEPRECATED |
| 40 | typedef Real first_argument_type; |
| 41 | |
| 42 | /*! \deprecated Use `auto` or `decltype` instead. |
| 43 | Deprecated in version 1.29. |
| 44 | */ |
| 45 | QL_DEPRECATED |
| 46 | typedef Real second_argument_type; |
| 47 | |
| 48 | /*! \deprecated Use `auto` or `decltype` instead. |
| 49 | Deprecated in version 1.29. |
| 50 | */ |
| 51 | QL_DEPRECATED |
| 52 | typedef Real result_type; |
| 53 | |
| 54 | AliMikhailHaqCopula(Real theta); |
| 55 | Real operator()(Real x, Real y) const; |
| 56 | private: |
| 57 | Real theta_; |
| 58 | }; |
| 59 | |
| 60 | } |
| 61 | |
| 62 | #endif |
| 63 | |