Modify Distrete Distribution. More...
#include <qle/math/discretedistribution.hpp>
Collaboration diagram for MDD: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.
Here is the call graph for this function:
|
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.
Here is the call graph for this function:
|
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.
Here is the call graph for this function:
|
static |
Add two discrete distributions while introducing a desired number of buckets.
Definition at line 254 of file discretedistribution.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add c * distribution b to distribution a, starting from the left.
Definition at line 408 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
Add c * distribution b to distribution a, starting from the right.
Definition at line 439 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
TODO
Definition at line 470 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
TODO
Definition at line 501 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
Scale each density by factor b.
Definition at line 539 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
Scale each coordinate by factor x.
Definition at line 555 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
Shift each coordinate by amount b.
Definition at line 571 of file discretedistribution.cpp.
Here is the call graph for this function:
|
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.
Here is the call graph for this function:
|
static |
Apply function F to each coordinate.
Definition at line 191 of file discretedistribution.hpp.
Here is the call graph for this function:
|
static |
TODO
Definition at line 617 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
Return the expected coordinate value.
Definition at line 647 of file discretedistribution.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Return the standard deviation of the discrete distribution.
Definition at line 661 of file discretedistribution.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
TODO
Definition at line 677 of file discretedistribution.cpp.
Here is the call graph for this function:
|
static |
Print the distribution of the provided stream.
Definition at line 693 of file discretedistribution.cpp.
Here is the call graph for this function:
|
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.
Here is the call graph for this function:
|
static |
Probability matching with linear interpolation.
Definition at line 359 of file discretedistribution.cpp.
Here is the call graph for this function: