1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
5
<meta name="robots" content="none">
6
<title>QuantLib: BootstrapHelper Class Template Reference</title>
7
<link rel="stylesheet" href="quantlib.css" type="text/css">
8
<link rel="stylesheet" href="print.css" type="text/css" media="print">
9
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
10
<link rel="icon" href="favicon.ico" type="image/x-icon">
16
<img class="titleimage"
17
src="QL-title.jpg" width="212" height="47" border="0"
20
<h3 class="subtitle">A free/open-source library for quantitative finance</h3>
24
<h3 class="navbartitle">Version 0.9.0</h3>
28
<h3 class="navbartitle">Getting started</h3>
29
<ul class="navbarlist">
30
<li class="navlink"><a href="index.html">Introduction</a></li>
31
<li class="navlink"><a href="overview.html">Project overview</a></li>
32
<li class="navlink"><a href="where.html">Where to get QuantLib</a></li>
33
<li class="navlink"><a href="install.html">Installation</a></li>
34
<li class="navlink"><a href="config.html">Configuration</a></li>
35
<li class="navlink"><a href="usage.html">Usage</a></li>
36
<li class="navlink"><a href="history.html">Version history</a></li>
37
<li class="navlink"><a href="resources.html">Additional resources</a></li>
38
<li class="navlink"><a href="group.html">The QuantLib group</a></li>
39
<li class="navlink"><a href="license.html">Copyright and license</a></li>
44
<h3 class="navbartitle">Reference manual</h3>
45
<ul class="navbarlist">
46
<li class="navlink"><a href="modules.html">Modules</a></li>
47
<li class="navlink"><a href="hierarchy.html">Class Hierarchy</a></li>
48
<li class="navlink"><a href="annotated.html">Compound List</a></li>
49
<li class="navlink"><a href="files.html">File List</a></li>
50
<li class="navlink"><a href="functions.html">Compound Members</a></li>
51
<li class="navlink"><a href="globals.html">File Members</a></li>
52
<li class="navlink"><a href="bug.html">Known Bugs</a></li>
53
<li class="navlink"><a href="caveats.html">Caveats</a></li>
54
<li class="navlink"><a href="test.html">Test Suite</a></li>
55
<li class="navlink"><a href="examples.html">Examples</a></li>
60
<!--Doxygen-generated content-->
62
<!-- Generated by Doxygen 1.5.4 -->
64
<a class="el" href="namespace_quant_lib.html">QuantLib</a>::<a class="el" href="class_quant_lib_1_1_bootstrap_helper.html">BootstrapHelper</a></div>
65
<h1>BootstrapHelper Class Template Reference</h1><!-- doxytag: class="QuantLib::BootstrapHelper" --><!-- doxytag: inherits="QuantLib::Observer,QuantLib::Observable" --><code>#include <ql/termstructures/bootstraphelper.hpp></code>
67
<div class="dynheader">
68
Inheritance diagram for BootstrapHelper:</div>
69
<div class="dynsection">
70
<p><center><img src="class_quant_lib_1_1_bootstrap_helper__inherit__graph.png" border="0" usemap="#_bootstrap_helper__inherit__map" alt="Inheritance graph"></center>
71
<map name="_bootstrap_helper__inherit__map">
72
<area shape="rect" href="class_quant_lib_1_1_fixed_rate_bond_helper.html" title="fixed-coupon bond helper" alt="" coords="343,5,721,32"><area shape="rect" href="class_quant_lib_1_1_futures_rate_helper.html" title="Rate helper for bootstrapping over interest-rate futures prices." alt="" coords="352,56,712,83"><area shape="rect" href="class_quant_lib_1_1_relative_date_rate_helper.html" title="Rate helper with date schedule relative to the global evaluation date." alt="" coords="333,107,731,133"><area shape="rect" href="class_quant_lib_1_1_yyiis_inflation_helper.html" title="Year-on-year inflation-swap bootstrap helper." alt="" coords="327,157,737,184"><area shape="rect" href="class_quant_lib_1_1_zciis_inflation_helper.html" title="Zero-coupon inflation-swap bootstrap helper." alt="" coords="327,208,737,235"><area shape="rect" href="class_quant_lib_1_1_observer.html" title="Object that gets notified when a given observable changes." alt="" coords="13,81,93,108"><area shape="rect" href="class_quant_lib_1_1_observable.html" title="Object that notifies its changes to a set of observables." alt="" coords="7,132,100,159"></map>
73
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
76
<a href="class_quant_lib_1_1_bootstrap_helper-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
77
<h3>template<class TS><br>
78
class QuantLib::BootstrapHelper< TS ></h3>
80
Base helper class for bootstrapping.
82
This class provides an abstraction for the instruments used to bootstrap a term structure.<p>
83
It is advised that a bootstrap helper for an instrument contains an instance of the actual instrument class to ensure consistancy between the algorithms used during bootstrapping and later instrument pricing. This is not yet fully enforced in the available rate helpers. <table border="0" cellpadding="0" cellspacing="0">
85
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1299b8acb0c37531455f26756650dcdd"></a><!-- doxytag: member="QuantLib::BootstrapHelper::BootstrapHelper" ref="1299b8acb0c37531455f26756650dcdd" args="(const Handle< Quote > &quote)" -->
87
</td><td class="memItemRight" valign="bottom"><b>BootstrapHelper</b> (const <a class="el" href="class_quant_lib_1_1_handle.html">Handle</a>< <a class="el" href="class_quant_lib_1_1_quote.html">Quote</a> > &quote)</td></tr>
89
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7e2d8f3f54ffbebf7627f11beb8b0dd2"></a><!-- doxytag: member="QuantLib::BootstrapHelper::BootstrapHelper" ref="7e2d8f3f54ffbebf7627f11beb8b0dd2" args="(Real quote)" -->
90
</td><td class="memItemRight" valign="bottom"><b>BootstrapHelper</b> (<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a> quote)</td></tr>
92
<tr><td colspan="2"><div class="groupHeader">BootstrapHelper interface</div></td></tr>
93
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc00c84d3345895f7c21eb647d1a165d"></a><!-- doxytag: member="QuantLib::BootstrapHelper::quoteError" ref="cc00c84d3345895f7c21eb647d1a165d" args="() const " -->
94
<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a> </td><td class="memItemRight" valign="bottom"><b>quoteError</b> () const </td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="510a1386e650a94312eba5068463a16e"></a><!-- doxytag: member="QuantLib::BootstrapHelper::quoteValue" ref="510a1386e650a94312eba5068463a16e" args="() const " -->
97
<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a> </td><td class="memItemRight" valign="bottom"><b>quoteValue</b> () const </td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="621528cb58b5d16b1527b6d29db3f65c"></a><!-- doxytag: member="QuantLib::BootstrapHelper::quoteIsValid" ref="621528cb58b5d16b1527b6d29db3f65c" args="() const " -->
100
bool </td><td class="memItemRight" valign="bottom"><b>quoteIsValid</b> () const </td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="084bbc018cd8351e5acbe2f64d153efa"></a><!-- doxytag: member="QuantLib::BootstrapHelper::impliedQuote" ref="084bbc018cd8351e5acbe2f64d153efa" args="() const =0" -->
103
virtual <a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a> </td><td class="memItemRight" valign="bottom"><b>impliedQuote</b> () const =0</td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_bootstrap_helper.html#c8bb5ca2d4e7d7754be9f69e43a054ce">setTermStructure</a> (TS *)</td></tr>
107
<tr><td class="mdescLeft"> </td><td class="mdescRight">sets the term structure to be used for pricing <a href="#c8bb5ca2d4e7d7754be9f69e43a054ce"></a><br></td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_quant_lib_1_1_date.html">Date</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_bootstrap_helper.html#4f214cc42c56e72b46e5eb1169d09c85">earliestDate</a> () const </td></tr>
110
<tr><td class="mdescLeft"> </td><td class="mdescRight">earliest relevant date <a href="#4f214cc42c56e72b46e5eb1169d09c85"></a><br></td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_quant_lib_1_1_date.html">Date</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_bootstrap_helper.html#222b6622639b9f88498559ff0cbc1cf5">latestDate</a> () const </td></tr>
113
<tr><td class="mdescLeft"> </td><td class="mdescRight">latest relevant date <a href="#222b6622639b9f88498559ff0cbc1cf5"></a><br></td></tr>
114
<tr><td colspan="2"><div class="groupHeader">Observer interface</div></td></tr>
115
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_bootstrap_helper.html#c5c54df7ed3b930268c8d7752c101725">update</a> ()</td></tr>
117
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
118
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d87a388f17e28809793d3f796120ffe"></a><!-- doxytag: member="QuantLib::BootstrapHelper::quote_" ref="5d87a388f17e28809793d3f796120ffe" args="" -->
119
<a class="el" href="class_quant_lib_1_1_handle.html">Handle</a>< <a class="el" href="class_quant_lib_1_1_quote.html">Quote</a> > </td><td class="memItemRight" valign="bottom"><b>quote_</b></td></tr>
121
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b8dd7251ae853867524318d16decff5d"></a><!-- doxytag: member="QuantLib::BootstrapHelper::termStructure_" ref="b8dd7251ae853867524318d16decff5d" args="" -->
122
TS * </td><td class="memItemRight" valign="bottom"><b>termStructure_</b></td></tr>
124
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="32b2e7b78fba89f3b87e6c61b4e783a8"></a><!-- doxytag: member="QuantLib::BootstrapHelper::earliestDate_" ref="32b2e7b78fba89f3b87e6c61b4e783a8" args="" -->
125
<a class="el" href="class_quant_lib_1_1_date.html">Date</a> </td><td class="memItemRight" valign="bottom"><b>earliestDate_</b></td></tr>
127
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b3b450e2412f03562f6e3f43020b876"></a><!-- doxytag: member="QuantLib::BootstrapHelper::latestDate_" ref="7b3b450e2412f03562f6e3f43020b876" args="" -->
128
<a class="el" href="class_quant_lib_1_1_date.html">Date</a> </td><td class="memItemRight" valign="bottom"><b>latestDate_</b></td></tr>
131
<hr><h2>Member Function Documentation</h2>
132
<a class="anchor" name="c8bb5ca2d4e7d7754be9f69e43a054ce"></a><!-- doxytag: member="QuantLib::BootstrapHelper::setTermStructure" ref="c8bb5ca2d4e7d7754be9f69e43a054ce" args="(TS *)" -->
133
<div class="memitem">
134
<div class="memproto">
135
<table class="memname">
137
<td class="memname">void setTermStructure </td>
139
<td class="paramtype">TS * </td>
140
<td class="paramname"> <em>t</em> </td>
141
<td> ) </td>
142
<td width="100%"><code> [virtual]</code></td>
149
sets the term structure to be used for pricing
151
<dl compact><dt><b><a class="el" href="caveats.html#_caveats000091">Warning:</a></b></dt><dd>Being a pointer and not a shared_ptr, the term structure is not guaranteed to remain allocated for the whole life of the rate helper. It is responsibility of the programmer to ensure that the pointer remains valid. It is advised that rate helpers be used only in term structure constructors, setting the term structure to <b>this</b>, i.e., the one being constructed. </dd></dl>
155
<a class="anchor" name="4f214cc42c56e72b46e5eb1169d09c85"></a><!-- doxytag: member="QuantLib::BootstrapHelper::earliestDate" ref="4f214cc42c56e72b46e5eb1169d09c85" args="() const " -->
156
<div class="memitem">
157
<div class="memproto">
158
<table class="memname">
160
<td class="memname"><a class="el" href="class_quant_lib_1_1_date.html">Date</a> earliestDate </td>
162
<td class="paramname"> </td>
163
<td> ) </td>
164
<td width="100%"> const<code> [virtual]</code></td>
171
earliest relevant date
173
The earliest date at which discounts are needed by the helper in order to provide a quote.
176
<a class="anchor" name="222b6622639b9f88498559ff0cbc1cf5"></a><!-- doxytag: member="QuantLib::BootstrapHelper::latestDate" ref="222b6622639b9f88498559ff0cbc1cf5" args="() const " -->
177
<div class="memitem">
178
<div class="memproto">
179
<table class="memname">
181
<td class="memname"><a class="el" href="class_quant_lib_1_1_date.html">Date</a> latestDate </td>
183
<td class="paramname"> </td>
184
<td> ) </td>
185
<td width="100%"> const<code> [virtual]</code></td>
194
The latest date at which discounts are needed by the helper in order to provide a quote. It does not necessarily equal the maturity of the underlying instrument.
197
<a class="anchor" name="c5c54df7ed3b930268c8d7752c101725"></a><!-- doxytag: member="QuantLib::BootstrapHelper::update" ref="c5c54df7ed3b930268c8d7752c101725" args="()" -->
198
<div class="memitem">
199
<div class="memproto">
200
<table class="memname">
202
<td class="memname">void update </td>
204
<td class="paramname"> </td>
205
<td> ) </td>
206
<td width="100%"><code> [virtual]</code></td>
213
This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.
214
<p>Implements <a class="el" href="class_quant_lib_1_1_observer.html#99b02345a8a15d3c5ea2844a2253f510">Observer</a>.</p>
216
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_relative_date_rate_helper.html#c5c54df7ed3b930268c8d7752c101725">RelativeDateRateHelper</a>.</p>
224
<div class="endmatter">
225
Documentation generated by
226
<a href="http://www.doxygen.org">Doxygen</a> 1.5.4