~ubuntu-branches/ubuntu/trusty/quantlib-refman-html/trusty

« back to all changes in this revision

Viewing changes to html/class_quant_lib_1_1_stochastic_process.html

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-12-03 21:23:12 UTC
  • mfrom: (1.2.11 upstream) (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091203212312-b5xqdch18rgr5vc5
Tags: 0.9.9-1
* New upstream release
* As before, re-packaged upstream file QuantLib-docs-0.9.9.html.tar.gz 
  as described in the copyright file included with the Debian package.

* debian/control: Updated Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
</div>
22
22
<div id="menu">
23
23
 
24
 
<h3 class="navbartitle">Version 0.9.7</h3>
 
24
<h3 class="navbartitle">Version 0.9.9</h3>
25
25
 
26
26
<hr>
27
27
 
28
28
<h3 class="navbartitle">Getting started</h3>
29
29
<ul class="navbarlist">
30
30
<li class="navlink"><a href="index.html">Introduction</a></li>
31
 
<li class="navlink"><a href="overview.html">Project overview</a></li>
32
31
<li class="navlink"><a href="where.html">Where to get QuantLib</a></li>
33
32
<li class="navlink"><a href="install.html">Installation</a></li>
34
33
<li class="navlink"><a href="config.html">Configuration</a></li>
74
73
<div class="dynsection">
75
74
<p><center><img src="class_quant_lib_1_1_stochastic_process__inherit__graph.png" border="0" usemap="#_stochastic_process__inherit__map" alt="Inheritance graph"></center>
76
75
<map name="_stochastic_process__inherit__map">
77
 
<area shape="rect" href="class_quant_lib_1_1_forward_measure_process.html" title="forward&#45;measure stochastic process" alt="" coords="329,5,495,32"><area shape="rect" href="class_quant_lib_1_1_g2_process.html" title="G2 stochastic process" alt="" coords="369,56,455,82"><area shape="rect" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html" title="Stochastic&#45;volatility GJR&#45;GARCH(1,1) process." alt="" coords="341,106,483,133"><area shape="rect" href="class_quant_lib_1_1_heston_process.html" title="Square&#45;root stochastic&#45;volatility Heston process." alt="" coords="357,157,467,184"><area shape="rect" href="class_quant_lib_1_1_libor_forward_model_process.html" title="libor&#45;forward&#45;model process" alt="" coords="323,208,501,234"><area shape="rect" href="class_quant_lib_1_1_stochastic_process1_d.html" title="1&#45;dimensional stochastic process" alt="" coords="339,258,485,285"><area shape="rect" href="class_quant_lib_1_1_stochastic_process_array.html" title="Array of correlated 1&#45;D stochastic processes" alt="" coords="331,309,493,336"><area shape="rect" href="class_quant_lib_1_1_observer.html" title="Object that gets notified when a given observable changes." alt="" coords="12,132,87,158"><area shape="rect" href="class_quant_lib_1_1_observable.html" title="Object that notifies its changes to a set of observables." alt="" coords="5,182,93,209"></map>
 
76
<area shape="rect" href="class_quant_lib_1_1_forward_measure_process.html" title="forward&#45;measure stochastic process" alt="" coords="341,5,507,35"><area shape="rect" href="class_quant_lib_1_1_g2_process.html" title="G2 stochastic process" alt="" coords="381,59,467,88"><area shape="rect" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html" title="Stochastic&#45;volatility GJR&#45;GARCH(1,1) process." alt="" coords="355,112,493,141"><area shape="rect" href="class_quant_lib_1_1_heston_process.html" title="Square&#45;root stochastic&#45;volatility Heston process." alt="" coords="369,165,479,195"><area shape="rect" href="class_quant_lib_1_1_hybrid_heston_hull_white_process.html" title="Hybrid Heston Hull&#45;White stochastic process." alt="" coords="323,219,525,248"><area shape="rect" href="class_quant_lib_1_1_libor_forward_model_process.html" title="libor&#45;forward&#45;model process" alt="" coords="335,272,513,301"><area shape="rect" href="class_quant_lib_1_1_stochastic_process1_d.html" title="1&#45;dimensional stochastic process" alt="" coords="351,325,497,355"><area shape="rect" href="class_quant_lib_1_1_stochastic_process_array.html" title="Array of correlated 1&#45;D stochastic processes" alt="" coords="343,379,505,408"><area shape="rect" href="class_quant_lib_1_1_observer.html" title="Object that gets notified when a given observable changes." alt="" coords="12,165,87,195"><area shape="rect" href="class_quant_lib_1_1_observable.html" title="Object that notifies its changes to a set of observers." alt="" coords="5,219,93,248"></map>
78
77
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
79
78
 
80
79
<p>
101
100
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dd74d4d9a1354fee6d3df7662b14e7e1"></a><!-- doxytag: member="QuantLib::StochasticProcess::drift" ref="dd74d4d9a1354fee6d3df7662b14e7e1" args="(Time t, const Array &amp;x) const =0" -->
102
101
virtual <a class="el" href="class_quant_lib_1_1_disposable.html">Disposable</a>&lt; <a class="el" href="class_quant_lib_1_1_array.html">Array</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_stochastic_process.html#dd74d4d9a1354fee6d3df7662b14e7e1">drift</a> (Time t, const <a class="el" href="class_quant_lib_1_1_array.html">Array</a> &amp;x) const =0</td></tr>
103
102
 
104
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the drift part of the equation, i.e., <img class="formulaInl" alt="$ \mu(t, \mathrm{x}_t) $" src="form_348.png"> <br></td></tr>
 
103
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the drift part of the equation, i.e., <img class="formulaInl" alt="$ \mu(t, \mathrm{x}_t) $" src="form_341.png"> <br></td></tr>
105
104
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8562aad455e247b42d47aab2b18f205a"></a><!-- doxytag: member="QuantLib::StochasticProcess::diffusion" ref="8562aad455e247b42d47aab2b18f205a" args="(Time t, const Array &amp;x) const =0" -->
106
105
virtual <a class="el" href="class_quant_lib_1_1_disposable.html">Disposable</a>&lt; <a class="el" href="class_quant_lib_1_1_matrix.html">Matrix</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_stochastic_process.html#8562aad455e247b42d47aab2b18f205a">diffusion</a> (Time t, const <a class="el" href="class_quant_lib_1_1_array.html">Array</a> &amp;x) const =0</td></tr>
107
106
 
108
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the diffusion part of the equation, i.e. <img class="formulaInl" alt="$ \sigma(t, \mathrm{x}_t) $" src="form_349.png"> <br></td></tr>
 
107
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the diffusion part of the equation, i.e. <img class="formulaInl" alt="$ \sigma(t, \mathrm{x}_t) $" src="form_342.png"> <br></td></tr>
109
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_quant_lib_1_1_disposable.html">Disposable</a>&lt; <a class="el" href="class_quant_lib_1_1_array.html">Array</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_stochastic_process.html#90f2fadbc2346fb7f6c94611215a068b">expectation</a> (Time t0, const <a class="el" href="class_quant_lib_1_1_array.html">Array</a> &amp;x0, Time dt) const </td></tr>
110
109
 
111
110
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_quant_lib_1_1_disposable.html">Disposable</a>&lt; <a class="el" href="class_quant_lib_1_1_matrix.html">Matrix</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_stochastic_process.html#f60142c7a240fe9fa7a9458740815b9c">stdDeviation</a> (Time t0, const <a class="el" href="class_quant_lib_1_1_array.html">Array</a> &amp;x0, Time dt) const </td></tr>
135
134
multi-dimensional stochastic process class. 
136
135
<p>
137
136
This class describes a stochastic process governed by <p class="formulaDsp">
138
 
<img class="formulaDsp" alt="\[ d\mathrm{x}_t = \mu(t, x_t)\mathrm{d}t + \sigma(t, \mathrm{x}_t) \cdot d\mathrm{W}_t. \]" src="form_346.png">
 
137
<img class="formulaDsp" alt="\[ d\mathrm{x}_t = \mu(t, x_t)\mathrm{d}t + \sigma(t, \mathrm{x}_t) \cdot d\mathrm{W}_t. \]" src="form_339.png">
139
138
<p>
140
139
 <hr><h2>Member Function Documentation</h2>
141
140
<a class="anchor" name="90f2fadbc2346fb7f6c94611215a068b"></a><!-- doxytag: member="QuantLib::StochasticProcess::expectation" ref="90f2fadbc2346fb7f6c94611215a068b" args="(Time t0, const Array &amp;x0, Time dt) const " -->
170
169
<div class="memdoc">
171
170
 
172
171
<p>
173
 
returns the expectation <img class="formulaInl" alt="$ E(\mathrm{x}_{t_0 + \Delta t} | \mathrm{x}_{t_0} = \mathrm{x}_0) $" src="form_350.png"> of the process after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_351.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. This method can be overridden in derived classes which want to hard-code a particular <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. 
 
172
returns the expectation <img class="formulaInl" alt="$ E(\mathrm{x}_{t_0 + \Delta t} | \mathrm{x}_{t_0} = \mathrm{x}_0) $" src="form_343.png"> of the process after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_344.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. This method can be overridden in derived classes which want to hard-code a particular <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. 
174
173
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_g2_process.html#30a103c583af9320f08337052d38c622">G2Process</a>, <a class="el" href="class_quant_lib_1_1_g2_forward_process.html#30a103c583af9320f08337052d38c622">G2ForwardProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#30a103c583af9320f08337052d38c622">StochasticProcessArray</a>.</p>
175
174
 
176
175
</div>
207
206
<div class="memdoc">
208
207
 
209
208
<p>
210
 
returns the standard deviation <img class="formulaInl" alt="$ S(\mathrm{x}_{t_0 + \Delta t} | \mathrm{x}_{t_0} = \mathrm{x}_0) $" src="form_352.png"> of the process after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_351.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. This method can be overridden in derived classes which want to hard-code a particular <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. 
 
209
returns the standard deviation <img class="formulaInl" alt="$ S(\mathrm{x}_{t_0 + \Delta t} | \mathrm{x}_{t_0} = \mathrm{x}_0) $" src="form_345.png"> of the process after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_344.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. This method can be overridden in derived classes which want to hard-code a particular <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. 
211
210
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_g2_process.html#b55b8ade4729f4509ad40bbaab050a0d">G2Process</a>, <a class="el" href="class_quant_lib_1_1_g2_forward_process.html#b55b8ade4729f4509ad40bbaab050a0d">G2ForwardProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#b55b8ade4729f4509ad40bbaab050a0d">StochasticProcessArray</a>.</p>
212
211
 
213
212
</div>
244
243
<div class="memdoc">
245
244
 
246
245
<p>
247
 
returns the covariance <img class="formulaInl" alt="$ V(\mathrm{x}_{t_0 + \Delta t} | \mathrm{x}_{t_0} = \mathrm{x}_0) $" src="form_353.png"> of the process after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_351.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. This method can be overridden in derived classes which want to hard-code a particular <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. 
 
246
returns the covariance <img class="formulaInl" alt="$ V(\mathrm{x}_{t_0 + \Delta t} | \mathrm{x}_{t_0} = \mathrm{x}_0) $" src="form_346.png"> of the process after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_344.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. This method can be overridden in derived classes which want to hard-code a particular <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. 
248
247
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_libor_forward_model_process.html#a35146549bd167f407791342e89927e3">LiborForwardModelProcess</a>, <a class="el" href="class_quant_lib_1_1_g2_process.html#a35146549bd167f407791342e89927e3">G2Process</a>, <a class="el" href="class_quant_lib_1_1_g2_forward_process.html#a35146549bd167f407791342e89927e3">G2ForwardProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#a35146549bd167f407791342e89927e3">StochasticProcessArray</a>.</p>
249
248
 
250
249
</div>
287
286
<div class="memdoc">
288
287
 
289
288
<p>
290
 
returns the asset value after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_351.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. By default, it returns <p class="formulaDsp">
291
 
<img class="formulaDsp" alt="\[ E(\mathrm{x}_0,t_0,\Delta t) + S(\mathrm{x}_0,t_0,\Delta t) \cdot \Delta \mathrm{w} \]" src="form_354.png">
 
289
returns the asset value after a time interval <img class="formulaInl" alt="$ \Delta t $" src="form_344.png"> according to the given <a class="el" href="class_quant_lib_1_1_stochastic_process_1_1discretization.html" title="discretization of a stochastic process over a given time interval">discretization</a>. By default, it returns <p class="formulaDsp">
 
290
<img class="formulaDsp" alt="\[ E(\mathrm{x}_0,t_0,\Delta t) + S(\mathrm{x}_0,t_0,\Delta t) \cdot \Delta \mathrm{w} \]" src="form_347.png">
292
291
<p>
293
 
 where <img class="formulaInl" alt="$ E $" src="form_355.png"> is the expectation and <img class="formulaInl" alt="$ S $" src="form_213.png"> the standard deviation. 
294
 
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_libor_forward_model_process.html#89ac97af7698aa193a9c0731dcdd9d8a">LiborForwardModelProcess</a>, <a class="el" href="class_quant_lib_1_1_bates_process.html#89ac97af7698aa193a9c0731dcdd9d8a">BatesProcess</a>, <a class="el" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html#89ac97af7698aa193a9c0731dcdd9d8a">GJRGARCHProcess</a>, <a class="el" href="class_quant_lib_1_1_heston_process.html#89ac97af7698aa193a9c0731dcdd9d8a">HestonProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#89ac97af7698aa193a9c0731dcdd9d8a">StochasticProcessArray</a>.</p>
 
292
 where <img class="formulaInl" alt="$ E $" src="form_348.png"> is the expectation and <img class="formulaInl" alt="$ S $" src="form_202.png"> the standard deviation. 
 
293
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_libor_forward_model_process.html#89ac97af7698aa193a9c0731dcdd9d8a">LiborForwardModelProcess</a>, <a class="el" href="class_quant_lib_1_1_bates_process.html#89ac97af7698aa193a9c0731dcdd9d8a">BatesProcess</a>, <a class="el" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html#89ac97af7698aa193a9c0731dcdd9d8a">GJRGARCHProcess</a>, <a class="el" href="class_quant_lib_1_1_heston_process.html#89ac97af7698aa193a9c0731dcdd9d8a">HestonProcess</a>, <a class="el" href="class_quant_lib_1_1_hybrid_heston_hull_white_process.html#89ac97af7698aa193a9c0731dcdd9d8a">HybridHestonHullWhiteProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#89ac97af7698aa193a9c0731dcdd9d8a">StochasticProcessArray</a>.</p>
295
294
 
296
295
</div>
297
296
</div><p>
321
320
<div class="memdoc">
322
321
 
323
322
<p>
324
 
applies a change to the asset value. By default, it returns <img class="formulaInl" alt="$ \mathrm{x} + \Delta \mathrm{x} $" src="form_356.png">. 
325
 
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_libor_forward_model_process.html#87d025fa8e0daa4e048320c7ac266bb3">LiborForwardModelProcess</a>, <a class="el" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html#87d025fa8e0daa4e048320c7ac266bb3">GJRGARCHProcess</a>, <a class="el" href="class_quant_lib_1_1_heston_process.html#87d025fa8e0daa4e048320c7ac266bb3">HestonProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#87d025fa8e0daa4e048320c7ac266bb3">StochasticProcessArray</a>.</p>
 
323
applies a change to the asset value. By default, it returns <img class="formulaInl" alt="$ \mathrm{x} + \Delta \mathrm{x} $" src="form_349.png">. 
 
324
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_libor_forward_model_process.html#87d025fa8e0daa4e048320c7ac266bb3">LiborForwardModelProcess</a>, <a class="el" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html#87d025fa8e0daa4e048320c7ac266bb3">GJRGARCHProcess</a>, <a class="el" href="class_quant_lib_1_1_heston_process.html#87d025fa8e0daa4e048320c7ac266bb3">HestonProcess</a>, <a class="el" href="class_quant_lib_1_1_hybrid_heston_hull_white_process.html#87d025fa8e0daa4e048320c7ac266bb3">HybridHestonHullWhiteProcess</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#87d025fa8e0daa4e048320c7ac266bb3">StochasticProcessArray</a>.</p>
326
325
 
327
326
</div>
328
327
</div><p>
346
345
returns the time value corresponding to the given date in the reference system of the stochastic process.<p>
347
346
<dl class="note" compact><dt><b>Note:</b></dt><dd>As a number of processes might not need this functionality, a default implementation is given which raises an exception. </dd></dl>
348
347
 
349
 
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_generalized_black_scholes_process.html#f8a1d4ca4369b3009d08291f1c2d7744">GeneralizedBlackScholesProcess</a>, <a class="el" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html#f8a1d4ca4369b3009d08291f1c2d7744">GJRGARCHProcess</a>, <a class="el" href="class_quant_lib_1_1_heston_process.html#f8a1d4ca4369b3009d08291f1c2d7744">HestonProcess</a>, <a class="el" href="class_quant_lib_1_1_merton76_process.html#f8a1d4ca4369b3009d08291f1c2d7744">Merton76Process</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#f8a1d4ca4369b3009d08291f1c2d7744">StochasticProcessArray</a>.</p>
 
348
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_generalized_black_scholes_process.html#f8a1d4ca4369b3009d08291f1c2d7744">GeneralizedBlackScholesProcess</a>, <a class="el" href="class_quant_lib_1_1_g_j_r_g_a_r_c_h_process.html#f8a1d4ca4369b3009d08291f1c2d7744">GJRGARCHProcess</a>, <a class="el" href="class_quant_lib_1_1_heston_process.html#f8a1d4ca4369b3009d08291f1c2d7744">HestonProcess</a>, <a class="el" href="class_quant_lib_1_1_hybrid_heston_hull_white_process.html#748380f774765c5190c570c0c8a8091e">HybridHestonHullWhiteProcess</a>, <a class="el" href="class_quant_lib_1_1_merton76_process.html#f8a1d4ca4369b3009d08291f1c2d7744">Merton76Process</a>, and <a class="el" href="class_quant_lib_1_1_stochastic_process_array.html#f8a1d4ca4369b3009d08291f1c2d7744">StochasticProcessArray</a>.</p>
350
349
 
351
350
</div>
352
351
</div><p>