QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Loss distribution with Hull-White bucketing. More...
#include <lossdistribution.hpp>
Public Member Functions | |
LossDistBucketing (Size nBuckets, Real maximum, Real epsilon=1e-6) | |
Distribution | operator() (const std::vector< Real > &volumes, const std::vector< Real > &probabilities) const override |
Size | buckets () const override |
Real | maximum () const override |
Public Member Functions inherited from LossDist | |
LossDist ()=default | |
virtual | ~LossDist ()=default |
virtual Distribution | operator() (const std::vector< Real > &volumes, const std::vector< Real > &probabilities) const =0 |
virtual Size | buckets () const =0 |
virtual Real | maximum () const =0 |
Private Member Functions | |
int | locateTargetBucket (Real loss, Size i0=0) const |
Private Attributes | |
Size | nBuckets_ |
Real | maximum_ |
Real | epsilon_ |
Additional Inherited Members | |
Static Public Member Functions inherited from LossDist | |
static Real | binomialProbabilityOfNEvents (int n, std::vector< Real > &p) |
static Real | binomialProbabilityOfAtLeastNEvents (int n, std::vector< Real > &p) |
static std::vector< Real > | probabilityOfNEvents (std::vector< Real > &p) |
static Real | probabilityOfNEvents (int n, std::vector< Real > &p) |
static Real | probabilityOfAtLeastNEvents (int n, std::vector< Real > &p) |
Loss distribution with Hull-White bucketing.
Loss distribution with Hull-White bucketing
Loss distribution for varying volumes and probabilities of default, independence assumed.
The implementation of the loss distribution follows
John Hull and Alan White, "Valuation of a CDO and nth to default CDS without Monte Carlo simulation", Journal of Derivatives 12, 2, 2004.
Definition at line 170 of file lossdistribution.hpp.
LossDistBucketing | ( | Size | nBuckets, |
Real | maximum, | ||
Real | epsilon = 1e-6 |
||
) |
Definition at line 172 of file lossdistribution.hpp.
|
overridevirtual |
Implements LossDist.
Definition at line 227 of file lossdistribution.cpp.
|
overridevirtual |
Implements LossDist.
Definition at line 177 of file lossdistribution.hpp.
|
overridevirtual |
Implements LossDist.
Definition at line 178 of file lossdistribution.hpp.
|
private |
Definition at line 183 of file lossdistribution.hpp.
|
private |
Definition at line 184 of file lossdistribution.hpp.
|
private |
Definition at line 185 of file lossdistribution.hpp.