1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Marek Glowacki
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 claytoncopula.hpp
21 \brief Clayton copula
22*/
23
24#ifndef quantlib_math_Clayton_copula_h
25#define quantlib_math_Clayton_copula_h
26
27#include <ql/types.hpp>
28#include <functional>
29
30namespace QuantLib {
31
32 //! Clayton copula
33 class ClaytonCopula {
34 public:
35 /*! \deprecated Use `auto` or `decltype` instead.
36 Deprecated in version 1.29.
37 */
38 QL_DEPRECATED
39 typedef Real first_argument_type;
40
41 /*! \deprecated Use `auto` or `decltype` instead.
42 Deprecated in version 1.29.
43 */
44 QL_DEPRECATED
45 typedef Real second_argument_type;
46
47 /*! \deprecated Use `auto` or `decltype` instead.
48 Deprecated in version 1.29.
49 */
50 QL_DEPRECATED
51 typedef Real result_type;
52
53 ClaytonCopula(Real theta);
54 Real operator()(Real x, Real y) const;
55 private:
56 Real theta_;
57 };
58
59}
60
61#endif
62

source code of quantlib/ql/math/copulas/claytoncopula.hpp