QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <creditriskplus.hpp>
Public Member Functions | |
CreditRiskPlus (std::vector< Real > exposure, std::vector< Real > defaultProbability, std::vector< Size > sector, std::vector< Real > relativeDefaultVariance, Matrix correlation, Real unit) | |
const std::vector< Real > & | loss () |
const std::vector< Real > & | marginalLoss () |
Real | exposure () const |
Real | expectedLoss () const |
Real | unexpectedLoss () const |
Real | relativeDefaultVariance () const |
const std::vector< Real > & | sectorExposures () const |
const std::vector< Real > & | sectorExpectedLoss () const |
const std::vector< Real > & | sectorUnexpectedLoss () const |
Real | lossQuantile (Real p) |
Private Member Functions | |
void | compute () |
Private Attributes | |
const std::vector< Real > | exposure_ |
const std::vector< Real > | pd_ |
const std::vector< Size > | sector_ |
const std::vector< Real > | relativeDefaultVariance_ |
const Matrix | correlation_ |
const Real | unit_ |
Size | n_ |
Size | m_ |
std::vector< Real > | sectorExposure_ |
std::vector< Real > | sectorEl_ |
std::vector< Real > | sectorUl_ |
std::vector< Real > | marginalLoss_ |
std::vector< Real > | loss_ |
Real | exposureSum_ |
Real | el_ |
Real | el2_ |
Real | ul_ |
unsigned long | upperIndex_ |
Extended CreditRisk+ model as described in [1] Integrating Correlations, Risk, July 1999 and the references therein.
Definition at line 42 of file creditriskplus.hpp.
const std::vector< Real > & loss | ( | ) |
Definition at line 52 of file creditriskplus.hpp.
const std::vector< Real > & marginalLoss | ( | ) |
Definition at line 53 of file creditriskplus.hpp.
Real exposure | ( | ) | const |
Definition at line 55 of file creditriskplus.hpp.
Real expectedLoss | ( | ) | const |
Real unexpectedLoss | ( | ) | const |
Real relativeDefaultVariance | ( | ) | const |
const std::vector< Real > & sectorExposures | ( | ) | const |
Definition at line 63 of file creditriskplus.hpp.
const std::vector< Real > & sectorExpectedLoss | ( | ) | const |
Definition at line 66 of file creditriskplus.hpp.
const std::vector< Real > & sectorUnexpectedLoss | ( | ) | const |
Definition at line 69 of file creditriskplus.hpp.
Definition at line 83 of file creditriskplus.cpp.
|
private |
|
private |
Definition at line 77 of file creditriskplus.hpp.
|
private |
Definition at line 78 of file creditriskplus.hpp.
|
private |
Definition at line 79 of file creditriskplus.hpp.
|
private |
Definition at line 80 of file creditriskplus.hpp.
|
private |
Definition at line 81 of file creditriskplus.hpp.
|
private |
Definition at line 82 of file creditriskplus.hpp.
|
private |
Definition at line 84 of file creditriskplus.hpp.
|
private |
Definition at line 84 of file creditriskplus.hpp.
|
private |
Definition at line 86 of file creditriskplus.hpp.
|
private |
Definition at line 86 of file creditriskplus.hpp.
|
private |
Definition at line 86 of file creditriskplus.hpp.
|
private |
Definition at line 86 of file creditriskplus.hpp.
|
private |
Definition at line 87 of file creditriskplus.hpp.
|
private |
Definition at line 89 of file creditriskplus.hpp.
|
private |
Definition at line 89 of file creditriskplus.hpp.
|
private |
Definition at line 89 of file creditriskplus.hpp.
|
private |
Definition at line 89 of file creditriskplus.hpp.
|
private |
Definition at line 90 of file creditriskplus.hpp.