Approximate the boundary condition basing on asset spot price.
More...
#include <spotRelatedRange.hpp>
|
double | low_ |
| Multiplier for lower boundary.
|
|
double | up_ |
| Multiplier for upper boundary.
|
|
For some options the boundary conditions need to be set in the infinity. When we use numerical routines we must approximate this conditions with finite values. Using this class the spot range is set relatively to the spot price. When object of this class is constructed, the two multipliers low and upp are used. The lower boundary is approximated
. The upper boundary is approximated
.
- Examples:
- convergenceExample.cpp, and EuroOptExample.cpp.
marian::SpotRelatedRange::SpotRelatedRange |
( |
| ) |
|
|
inline |
Sets low to 0.5 and up to 2.0 by default
marian::SpotRelatedRange::SpotRelatedRange |
( |
double |
low, |
|
|
double |
up |
|
) |
| |
|
inline |
- Parameters
-
low | Multiplier for lower boundary |
up | Multiplier for upper boundary |
The documentation for this class was generated from the following file: