Modify Distrete Distribution. More...
#include <qle/math/discretedistribution.hpp>
Modify Distrete Distribution.
This class implements a set of operations on discrete disctributions, that involve one or two distributions.
Definition at line 93 of file discretedistribution.hpp.
|
static |
Convolution of two discrete distribution
Definition at line 66 of file discretedistribution.cpp.
|
static |
Amend the discretization of the distribution such that the number of buckets is reduced to the given number.
Definition at line 149 of file discretedistribution.cpp.
|
static |
Amend the discretization of the distribution such that the distance of adjacent buckets is reduced to the given number.
Definition at line 201 of file discretedistribution.cpp.
|
static |
Add two discrete distributions while introducing a desired number of buckets.
Definition at line 254 of file discretedistribution.cpp.
|
static |
Add c * distribution b to distribution a, starting from the left.
Definition at line 408 of file discretedistribution.cpp.
|
static |
Add c * distribution b to distribution a, starting from the right.
Definition at line 439 of file discretedistribution.cpp.
|
static |
TODO
Definition at line 470 of file discretedistribution.cpp.
|
static |
TODO
Definition at line 501 of file discretedistribution.cpp.
|
static |
Scale each density by factor b.
Definition at line 539 of file discretedistribution.cpp.
|
static |
Scale each coordinate by factor x.
Definition at line 555 of file discretedistribution.cpp.
|
static |
Shift each coordinate by amount b.
Definition at line 571 of file discretedistribution.cpp.
|
static |
CHECK: Cut off the branch of the distribution to the left of coordinate b and subsitute it with a single oint at coordinate b holding the cumulative probability up to b.
Definition at line 587 of file discretedistribution.cpp.
|
static |
Apply function F to each coordinate.
Definition at line 191 of file discretedistribution.hpp.
|
static |
TODO
Definition at line 617 of file discretedistribution.cpp.
|
static |
Return the expected coordinate value.
Definition at line 647 of file discretedistribution.cpp.
|
static |
Return the standard deviation of the discrete distribution.
Definition at line 661 of file discretedistribution.cpp.
|
static |
TODO
Definition at line 677 of file discretedistribution.cpp.
|
static |
Print the distribution of the provided stream.
Definition at line 693 of file discretedistribution.cpp.
|
static |
Probability matching:
Compute the cumulative probability P_b(c) of distribution b up to the provided coordintae c.
Compute the coordinate c* of distribution a where its cumulative probability equals P_b(c), i.e. P_a(c*) = P_b(c).
Return coordinate c*.
Definition at line 328 of file discretedistribution.cpp.
|
static |
Probability matching with linear interpolation.
Definition at line 359 of file discretedistribution.cpp.