helper class for the MonteCarloCBOEngine
More...
#include <qle/pricingengines/cboengine.hpp>
|
| Stats (std::vector< Real > data) |
|
Real | mean () |
|
Real | std () |
|
Real | max () |
|
Real | min () |
|
std::vector< Real > & | data () |
|
Distribution | histogram (Size bins, Real xmin=-QL_MAX_REAL, Real xmax=QL_MAX_REAL) |
|
helper class for the MonteCarloCBOEngine
Definition at line 45 of file cboengine.hpp.
◆ Stats()
Stats |
( |
std::vector< Real > |
data | ) |
|
Definition at line 31 of file cboengine.cpp.
32 for (Size i = 0; i <
data_.size(); i++) {
35 }
41}
std::vector< Real > & data()
std::vector< Real > data_
RandomVariable sqrt(RandomVariable x)
◆ mean()
◆ std()
◆ max()
◆ min()
◆ data()
std::vector< Real > & data |
( |
| ) |
|
◆ histogram()
Distribution histogram |
( |
Size |
bins, |
|
|
Real |
xmin = -QL_MAX_REAL , |
|
|
Real |
xmax = QL_MAX_REAL |
|
) |
| |
Definition at line 43 of file cboengine.cpp.
43 {
44 Distribution dist(bins, std::max(
min_, xmin), std::min(
max_, xmax));
45 for (Size i = 0; i <
data_.size(); i++) {
51 }
52 dist.normalize();
53 return dist;
54}
◆ data_
◆ mean_
◆ std_
◆ max_
◆ min_