QuantLib
: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
ql
math
distributions
bivariatenormaldistribution.hpp
1
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3
/*
4
Copyright (C) 2003 Ferdinando Ametrano
5
Copyright (C) 2005 Gary Kennedy
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
25
#ifndef quantlib_bivariatenormal_distribution_hpp
26
#define quantlib_bivariatenormal_distribution_hpp
27
28
#include <ql/math/distributions/normaldistribution.hpp>
29
30
namespace
QuantLib
{
31
33
59
class
BivariateCumulativeNormalDistributionDr78
{
60
public
:
61
BivariateCumulativeNormalDistributionDr78
(
Real
rho);
62
// function
63
Real
operator()
(
Real
a,
Real
b)
const
;
64
private
:
65
Real
rho_
,
rho2_
;
66
static
const
Real
x_
[],
y_
[];
67
};
68
69
71
92
class
BivariateCumulativeNormalDistributionWe04DP
{
93
public
:
94
BivariateCumulativeNormalDistributionWe04DP
(
Real
rho);
95
// function
96
Real
operator()
(
Real
a,
Real
b)
const
;
97
private
:
98
Real
correlation_
;
99
CumulativeNormalDistribution
cumnorm_
;
100
};
101
103
typedef
BivariateCumulativeNormalDistributionWe04DP
104
BivariateCumulativeNormalDistribution
;
105
106
}
107
108
109
#endif
QuantLib::BivariateCumulativeNormalDistributionDr78
Cumulative bivariate normal distribution function.
Definition:
bivariatenormaldistribution.hpp:59
QuantLib::BivariateCumulativeNormalDistributionDr78::x_
static const Real x_[]
Definition:
bivariatenormaldistribution.hpp:66
QuantLib::BivariateCumulativeNormalDistributionDr78::rho_
Real rho_
Definition:
bivariatenormaldistribution.hpp:65
QuantLib::BivariateCumulativeNormalDistributionDr78::y_
static const Real y_[]
Definition:
bivariatenormaldistribution.hpp:66
QuantLib::BivariateCumulativeNormalDistributionDr78::operator()
Real operator()(Real a, Real b) const
Definition:
bivariatenormaldistribution.cpp:56
QuantLib::BivariateCumulativeNormalDistributionDr78::rho2_
Real rho2_
Definition:
bivariatenormaldistribution.hpp:65
QuantLib::BivariateCumulativeNormalDistributionWe04DP
Cumulative bivariate normal distibution function (West 2004)
Definition:
bivariatenormaldistribution.hpp:92
QuantLib::BivariateCumulativeNormalDistributionWe04DP::cumnorm_
CumulativeNormalDistribution cumnorm_
Definition:
bivariatenormaldistribution.hpp:99
QuantLib::BivariateCumulativeNormalDistributionWe04DP::correlation_
Real correlation_
Definition:
bivariatenormaldistribution.hpp:98
QuantLib::BivariateCumulativeNormalDistributionWe04DP::operator()
Real operator()(Real a, Real b) const
Definition:
bivariatenormaldistribution.cpp:165
QuantLib::CumulativeNormalDistribution
Cumulative normal distribution function.
Definition:
normaldistribution.hpp:80
QuantLib::Real
QL_REAL Real
real number
Definition:
types.hpp:50
QuantLib
Definition:
any.hpp:35
QuantLib::BivariateCumulativeNormalDistribution
BivariateCumulativeNormalDistributionWe04DP BivariateCumulativeNormalDistribution
default bivariate implementation
Definition:
bivariatenormaldistribution.hpp:104
Generated by
Doxygen
1.9.5