Functions | |
void | computeDiscreteDistribution (std::vector< std::vector< double > >::iterator beginPDs, std::vector< std::vector< double > >::iterator endPDs, std::vector< std::vector< double > >::iterator beginLGDs, double runningDensity, double runningLoss, std::map< double, double > &dist) |
std::map< double, double > | lossDistribution (const std::vector< double > &pds, const std::vector< double > &lgds) |
std::map< double, double > | lossDistribution (const std::vector< vector< double > > &pds, const std::vector< vector< double > > &lgds) |
std::ostream & | operator<< (std::ostream &os, const BucketedDistribution &dist) |
double | expectedTrancheLoss (const std::map< double, double > &dist, double detachmentPoint) |
double | expectedTrancheLoss (QuantLib::Distribution dist, double attachmentAmount, double detachmentAmount) |
double | expectedTrancheLoss (const vector< double > &prob, const vector< double > &loss, double detachment) |
void computeDiscreteDistribution | ( | std::vector< std::vector< double > >::iterator | beginPDs, |
std::vector< std::vector< double > >::iterator | endPDs, | ||
std::vector< std::vector< double > >::iterator | beginLGDs, | ||
double | runningDensity, | ||
double | runningLoss, | ||
std::map< double, double > & | dist | ||
) |
Definition at line 46 of file hullwhitebucketing.cpp.
std::map< double, double > lossDistribution | ( | const std::vector< double > & | pds, |
const std::vector< double > & | lgds | ||
) |
Definition at line 61 of file hullwhitebucketing.cpp.
std::map< double, double > lossDistribution | ( | const std::vector< vector< double > > & | pds, |
const std::vector< vector< double > > & | lgds | ||
) |
Definition at line 78 of file hullwhitebucketing.cpp.
std::ostream & operator<< | ( | std::ostream & | os, |
const BucketedDistribution & | dist | ||
) |
Definition at line 138 of file hullwhitebucketing.cpp.
double expectedTrancheLoss | ( | const std::map< double, double > & | dist, |
double | detachmentPoint | ||
) |
Definition at line 148 of file hullwhitebucketing.cpp.
double expectedTrancheLoss | ( | QuantLib::Distribution | dist, |
double | attachmentAmount, | ||
double | detachmentAmount | ||
) |
Definition at line 160 of file hullwhitebucketing.cpp.
double expectedTrancheLoss | ( | const vector< double > & | prob, |
const vector< double > & | loss, | ||
double | detachment | ||
) |
Definition at line 177 of file hullwhitebucketing.cpp.