#include <qle/models/hullwhitebucketing.hpp>
Public Member Functions | |
template<class I > | |
HullWhiteBucketing (I bucketsBegin, I bucketsEnd) | |
HullWhiteBucketing (const Real lowerBound, const Real upperBound, const Size n) | |
template<class I1 , class I2 > | |
void | compute (I1 pdBegin, I1 pdEnd, I2 lossesBegin) |
template<class I1 , class I2 > | |
void | computeMultiState (I1 pBegin, I1 pEnd, I2 lossesBegin) |
const Array & | probability () const |
const Array & | averageLoss () const |
Public Member Functions inherited from Bucketing | |
template<class I > | |
Bucketing (I bucketsBegin, I bucketsEnd) | |
Bucketing (const Real lowerBound, const Real upperBound, const Size n) | |
const std::vector< Real > & | upperBucketBound () const |
Size | index (const Real x) const |
Size | buckets () const |
Private Member Functions | |
void | init_p_A () |
void | finalize_p_A () |
Private Attributes | |
Array | p_ |
Array | A_ |
Additional Inherited Members | |
Protected Member Functions inherited from Bucketing | |
void | initBuckets () |
Protected Attributes inherited from Bucketing | |
std::vector< Real > | buckets_ |
bool | uniformBuckets_ = false |
Real | lowerBound_ |
Real | upperBound_ |
Real | h_ |
Definition at line 51 of file hullwhitebucketing.hpp.
HullWhiteBucketing | ( | I | bucketsBegin, |
I | bucketsEnd | ||
) |
Definition at line 53 of file hullwhitebucketing.hpp.
HullWhiteBucketing | ( | const Real | lowerBound, |
const Real | upperBound, | ||
const Size | n | ||
) |
Definition at line 54 of file hullwhitebucketing.hpp.
void compute | ( | I1 | pdBegin, |
I1 | pdEnd, | ||
I2 | lossesBegin | ||
) |
Definition at line 81 of file hullwhitebucketing.hpp.
void computeMultiState | ( | I1 | pBegin, |
I1 | pEnd, | ||
I2 | lossesBegin | ||
) |
Definition at line 108 of file hullwhitebucketing.hpp.
const Array & probability | ( | ) | const |
const Array & averageLoss | ( | ) | const |
|
private |
|
private |
Definition at line 66 of file hullwhitebucketing.cpp.
|
private |
Definition at line 72 of file hullwhitebucketing.hpp.
|
private |
Definition at line 72 of file hullwhitebucketing.hpp.