QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
gammadistribution.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2002, 2003 Sadruddin Rejeb
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
24#ifndef quantlib_math_gamma_distribution_h
25#define quantlib_math_gamma_distribution_h
26
27#include <ql/errors.hpp>
28#include <ql/types.hpp>
29#include <functional>
30
31namespace QuantLib {
32
34 public:
38 QL_DEPRECATED
40
44 QL_DEPRECATED
46
48 QL_REQUIRE(a>0.0, "invalid parameter for gamma distribution");
49 }
50 Real operator()(Real x) const;
51 private:
53 };
54
56
69 public:
73 QL_DEPRECATED
75
79 QL_DEPRECATED
81
82 Real value(Real x) const;
83 Real logValue(Real x) const;
84 private:
85 static const Real c1_, c2_, c3_, c4_, c5_, c6_;
86 };
87
88}
89
90
91#endif
QL_DEPRECATED typedef Real argument_type
QL_DEPRECATED typedef Real result_type
Gamma function class.
Real logValue(Real x) const
QL_DEPRECATED typedef Real argument_type
QL_DEPRECATED typedef Real result_type
Real value(Real x) const
QL_REAL Real
real number
Definition: types.hpp:50
Definition: any.hpp:35