QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Localised-term-structure bootstrapper for most curve types. More...
#include <localbootstrap.hpp>
Public Member Functions | |
LocalBootstrap (Size localisation=2, bool forcePositive=true, Real accuracy=Null< Real >()) | |
void | setup (Curve *ts) |
void | calculate () const |
Private Types | |
typedef Curve::traits_type | Traits |
typedef Curve::interpolator_type | Interpolator |
Private Attributes | |
bool | validCurve_ = false |
Curve * | ts_ |
Size | localisation_ |
bool | forcePositive_ |
Real | accuracy_ |
Localised-term-structure bootstrapper for most curve types.
This algorithm enables a localised fitting for non-local interpolation methods.
As in the similar class (IterativeBootstrap) the input term structure is solved on a number of market instruments which are passed as a vector of handles to BootstrapHelper instances. Their maturities mark the boundaries of the interpolated segments.
Unlike the IterativeBootstrap class, the solution for each interpolated segment is derived using a local approximation. This restricts the risk profile s.t. the risk is localised. Therefore, we obtain a local IR risk profile whilst using a smoother interpolation method. Particularly good for the convex-monotone spline method.
Definition at line 85 of file localbootstrap.hpp.
|
private |
Definition at line 86 of file localbootstrap.hpp.
|
private |
Definition at line 87 of file localbootstrap.hpp.
Definition at line 108 of file localbootstrap.hpp.
void setup | ( | Curve * | ts | ) |
Definition at line 113 of file localbootstrap.hpp.
void calculate |
|
mutableprivate |
Definition at line 96 of file localbootstrap.hpp.
|
private |
Definition at line 97 of file localbootstrap.hpp.
|
private |
Definition at line 98 of file localbootstrap.hpp.
|
private |
Definition at line 99 of file localbootstrap.hpp.
|
private |
Definition at line 100 of file localbootstrap.hpp.