1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: bdm::ARX Class Reference</title> |
---|
4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
8 | <div class="navigation" id="top"> |
---|
9 | <div class="tabs"> |
---|
10 | <ul> |
---|
11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
14 | <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
15 | <li class="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
16 | <li><a href="files.html"><span>Files</span></a></li> |
---|
17 | </ul> |
---|
18 | </div> |
---|
19 | <div class="tabs"> |
---|
20 | <ul> |
---|
21 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
22 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
23 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
24 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
25 | </ul> |
---|
26 | </div> |
---|
27 | <div class="navpath"><a class="el" href="namespacebdm.html">bdm</a>::<a class="el" href="classbdm_1_1ARX.html">ARX</a> |
---|
28 | </div> |
---|
29 | </div> |
---|
30 | <div class="contents"> |
---|
31 | <h1>bdm::ARX Class Reference</h1><!-- doxytag: class="bdm::ARX" --><!-- doxytag: inherits="bdm::BMEF" -->Linear Autoregressive model with Gaussian noise. |
---|
32 | <a href="#_details">More...</a> |
---|
33 | <p> |
---|
34 | <code>#include <<a class="el" href="arx_8h-source.html">arx.h</a>></code> |
---|
35 | <p> |
---|
36 | <div class="dynheader"> |
---|
37 | Inheritance diagram for bdm::ARX:</div> |
---|
38 | <div class="dynsection"> |
---|
39 | <p><center><img src="classbdm_1_1ARX__inherit__graph.png" border="0" usemap="#bdm_1_1ARX__inherit__map" alt="Inheritance graph"></center> |
---|
40 | <map name="bdm_1_1ARX__inherit__map"> |
---|
41 | <area shape="rect" href="classbdm_1_1BMEF.html" title="Estimator for Exponential family." alt="" coords="15,161,108,188"><area shape="rect" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="23,84,100,111"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="5,7,117,33"></map> |
---|
42 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
43 | <div class="dynheader"> |
---|
44 | Collaboration diagram for bdm::ARX:</div> |
---|
45 | <div class="dynsection"> |
---|
46 | <p><center><img src="classbdm_1_1ARX__coll__graph.png" border="0" usemap="#bdm_1_1ARX__coll__map" alt="Collaboration graph"></center> |
---|
47 | <map name="bdm_1_1ARX__coll__map"> |
---|
48 | <area shape="rect" href="classbdm_1_1BMEF.html" title="Estimator for Exponential family." alt="" coords="15,316,108,343"><area shape="rect" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="5,183,83,209"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="52,7,164,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="71,87,145,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="107,183,192,209"><area shape="rect" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD)." alt="" coords="213,263,272,289"><area shape="rect" href="classbdm_1_1egiw.html" title="Gauss-inverse-Wishart density stored in LD form." alt="" coords="108,369,193,396"><area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="216,183,277,209"><area shape="rect" href="classbdm_1_1eEF.html" title="General conjugate exponential family posterior density." alt="" coords="109,263,189,289"></map> |
---|
49 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
50 | |
---|
51 | <p> |
---|
52 | <a href="classbdm_1_1ARX-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
53 | <tr><td></td></tr> |
---|
54 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="44914d0b259204b3446db82b989bd626"></a><!-- doxytag: member="bdm::ARX::ARX" ref="44914d0b259204b3446db82b989bd626" args="(const RV &rv, const mat &V0, const double &nu0, const double frg0=1.0)" --> |
---|
56 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#44914d0b259204b3446db82b989bd626">ARX</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1BM.html#18d6db4af8ee42077741d9e3618153ca">rv</a>, const mat &V0, const double &nu0, const double frg0=1.0)</td></tr> |
---|
57 | |
---|
58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <br></td></tr> |
---|
59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="73a55a3d66bfbeeee4df6c2ae40920ed"></a><!-- doxytag: member="bdm::ARX::ARX" ref="73a55a3d66bfbeeee4df6c2ae40920ed" args="(const ARX &A0)" --> |
---|
60 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#73a55a3d66bfbeeee4df6c2ae40920ed">ARX</a> (const <a class="el" href="classbdm_1_1ARX.html">ARX</a> &A0)</td></tr> |
---|
61 | |
---|
62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr> |
---|
63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="20ff2de8d862f28de7da83444d65bcdb"></a><!-- doxytag: member="bdm::ARX::_copy_" ref="20ff2de8d862f28de7da83444d65bcdb" args="(bool changerv=false)" --> |
---|
64 | <a class="el" href="classbdm_1_1ARX.html">ARX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#20ff2de8d862f28de7da83444d65bcdb">_copy_</a> (bool changerv=false)</td></tr> |
---|
65 | |
---|
66 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function. <br></td></tr> |
---|
67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cab0a1de5355b1027d24fd3d4862c9b0"></a><!-- doxytag: member="bdm::ARX::set_parameters" ref="cab0a1de5355b1027d24fd3d4862c9b0" args="(const ldmat &V0, const double &nu0)" --> |
---|
68 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#cab0a1de5355b1027d24fd3d4862c9b0">set_parameters</a> (const <a class="el" href="classldmat.html">ldmat</a> &V0, const double &nu0)</td></tr> |
---|
69 | |
---|
70 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sufficient statistics. <br></td></tr> |
---|
71 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="539f9d0127423c94b912708d390e67b8"></a><!-- doxytag: member="bdm::ARX::set_statistics" ref="539f9d0127423c94b912708d390e67b8" args="(const BMEF *BM0)" --> |
---|
72 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#539f9d0127423c94b912708d390e67b8">set_statistics</a> (const <a class="el" href="classbdm_1_1BMEF.html">BMEF</a> *BM0)</td></tr> |
---|
73 | |
---|
74 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get statistics from another model <br></td></tr> |
---|
75 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1974409e022ea1efb3404b5c2fde66ad"></a><!-- doxytag: member="bdm::ARX::get_parameters" ref="1974409e022ea1efb3404b5c2fde66ad" args="(mat &V0, double &nu0)" --> |
---|
76 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#1974409e022ea1efb3404b5c2fde66ad">get_parameters</a> (mat &V0, double &nu0)</td></tr> |
---|
77 | |
---|
78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns sufficient statistics. <br></td></tr> |
---|
79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="17e7fe14654ab3c449846c3f43e66169"></a><!-- doxytag: member="bdm::ARX::bayes" ref="17e7fe14654ab3c449846c3f43e66169" args="(const vec &dt, const double w)" --> |
---|
80 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#17e7fe14654ab3c449846c3f43e66169">bayes</a> (const vec &dt, const double w)</td></tr> |
---|
81 | |
---|
82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Here <img class="formulaInl" alt="$dt = [y_t psi_t] $" src="form_58.png">. <br></td></tr> |
---|
83 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#8bdf2974052e8ce74eb0d4f3791c58a3">bayes</a> (const vec &dt)</td></tr> |
---|
84 | |
---|
85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Incremental Bayes rule. <a href="#8bdf2974052e8ce74eb0d4f3791c58a3"></a><br></td></tr> |
---|
86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16797df43f85f1ddbe9d64fd6d82c25d"></a><!-- doxytag: member="bdm::ARX::_epdf" ref="16797df43f85f1ddbe9d64fd6d82c25d" args="() const " --> |
---|
87 | const <a class="el" href="classbdm_1_1epdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#16797df43f85f1ddbe9d64fd6d82c25d">_epdf</a> () const </td></tr> |
---|
88 | |
---|
89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a reference to the <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> representing posterior density on parameters. <br></td></tr> |
---|
90 | <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#080a7e531e3aa06694112863b15bc6a4">logpred</a> (const vec &dt) const </td></tr> |
---|
91 | |
---|
92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e86ab499b116b837d3163ec852961eca"></a><!-- doxytag: member="bdm::ARX::flatten" ref="e86ab499b116b837d3163ec852961eca" args="(const BMEF *B)" --> |
---|
93 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#e86ab499b116b837d3163ec852961eca">flatten</a> (const <a class="el" href="classbdm_1_1BMEF.html">BMEF</a> *B)</td></tr> |
---|
94 | |
---|
95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flatten the posterior according to the given <a class="el" href="classbdm_1_1BMEF.html" title="Estimator for Exponential family.">BMEF</a> (of the same type!). <br></td></tr> |
---|
96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c8d1fe774fe1da50293d50ad8aef43d"></a><!-- doxytag: member="bdm::ARX::predictor" ref="7c8d1fe774fe1da50293d50ad8aef43d" args="(const RV &rv0, const vec &rgr) const " --> |
---|
97 | <a class="el" href="classbdm_1_1enorm.html">enorm</a>< <a class="el" href="classldmat.html">ldmat</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#7c8d1fe774fe1da50293d50ad8aef43d">predictor</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0, const vec &rgr) const </td></tr> |
---|
98 | |
---|
99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Conditioned version of the predictor. <br></td></tr> |
---|
100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5b73b70457f49ce4ad8660d729172dfd"></a><!-- doxytag: member="bdm::ARX::predictor" ref="5b73b70457f49ce4ad8660d729172dfd" args="(const RV &rv0) const " --> |
---|
101 | <a class="el" href="classbdm_1_1enorm.html">enorm</a>< <a class="el" href="classldmat.html">ldmat</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#5b73b70457f49ce4ad8660d729172dfd">predictor</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0) const </td></tr> |
---|
102 | |
---|
103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a predictive density (marginal density on data). <br></td></tr> |
---|
104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02d9e91f21a700947a7b7eec1beed956"></a><!-- doxytag: member="bdm::ARX::predictor" ref="02d9e91f21a700947a7b7eec1beed956" args="(const RV &rv0, const RV &rvc0) const " --> |
---|
105 | <a class="el" href="classbdm_1_1mlnorm.html">mlnorm</a>< <a class="el" href="classldmat.html">ldmat</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#02d9e91f21a700947a7b7eec1beed956">predictor</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0, const <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc0) const </td></tr> |
---|
106 | |
---|
107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">conditional version of the predictor <br></td></tr> |
---|
108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ce8c6599497ffb94dfcb66d1fe7aca6"></a><!-- doxytag: member="bdm::ARX::predictor_student" ref="2ce8c6599497ffb94dfcb66d1fe7aca6" args="(const RV &rv0, const RV &rvc0) const " --> |
---|
109 | <a class="el" href="classbdm_1_1mlstudent.html">mlstudent</a> * </td><td class="memItemRight" valign="bottom"><b>predictor_student</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0, const <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc0) const </td></tr> |
---|
110 | |
---|
111 | <tr><td class="memItemLeft" nowrap align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#16b02ae03316751664c22d59d90c1e34">structure_est</a> (<a class="el" href="classbdm_1_1egiw.html">egiw</a> Eg0)</td></tr> |
---|
112 | |
---|
113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Brute force structure estimation. <a href="#16b02ae03316751664c22d59d90c1e34"></a><br></td></tr> |
---|
114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ab2c55205a324e9d698fbd8ac229ad4f"></a><!-- doxytag: member="bdm::ARX::_e" ref="ab2c55205a324e9d698fbd8ac229ad4f" args="() const " --> |
---|
115 | const <a class="el" href="classbdm_1_1egiw.html">egiw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#ab2c55205a324e9d698fbd8ac229ad4f">_e</a> () const </td></tr> |
---|
116 | |
---|
117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> representing posterior density on parameters. Use with care! <br></td></tr> |
---|
118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1dee3fddaf021e62d925289660a707dc"></a><!-- doxytag: member="bdm::ARX::bayesB" ref="1dee3fddaf021e62d925289660a707dc" args="(const mat &Dt)" --> |
---|
119 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#1dee3fddaf021e62d925289660a707dc">bayesB</a> (const mat &Dt)</td></tr> |
---|
120 | |
---|
121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Batch Bayes rule (columns of Dt are observations). <br></td></tr> |
---|
122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e8ebe61fb14990abe1254bd3dda5fae"></a><!-- doxytag: member="bdm::ARX::logpred_m" ref="0e8ebe61fb14990abe1254bd3dda5fae" args="(const mat &dt) const " --> |
---|
123 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#0e8ebe61fb14990abe1254bd3dda5fae">logpred_m</a> (const mat &dt) const </td></tr> |
---|
124 | |
---|
125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of logpred. <br></td></tr> |
---|
126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40a3c891996391e3135518053a917793"></a><!-- doxytag: member="bdm::ARX::_rv" ref="40a3c891996391e3135518053a917793" args="() const " --> |
---|
127 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#40a3c891996391e3135518053a917793">_rv</a> () const </td></tr> |
---|
128 | |
---|
129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5be65d37dedfe33a3671e7065f523a70"></a><!-- doxytag: member="bdm::ARX::_ll" ref="5be65d37dedfe33a3671e7065f523a70" args="() const " --> |
---|
131 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#5be65d37dedfe33a3671e7065f523a70">_ll</a> () const </td></tr> |
---|
132 | |
---|
133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="236b3abbcc93594fc97cd86d82c1a83f"></a><!-- doxytag: member="bdm::ARX::set_evalll" ref="236b3abbcc93594fc97cd86d82c1a83f" args="(bool evl0)" --> |
---|
135 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#236b3abbcc93594fc97cd86d82c1a83f">set_evalll</a> (bool evl0)</td></tr> |
---|
136 | |
---|
137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
138 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11474a627367f81b76830cb8477cf026"></a><!-- doxytag: member="bdm::ARX::est" ref="11474a627367f81b76830cb8477cf026" args="" --> |
---|
140 | <a class="el" href="classbdm_1_1egiw.html">egiw</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#11474a627367f81b76830cb8477cf026">est</a></td></tr> |
---|
141 | |
---|
142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Posterior estimate of <img class="formulaInl" alt="$\theta,r$" src="form_57.png"> in the form of Normal-inverse Wishart density. <br></td></tr> |
---|
143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de5b7d83ff5d3f5af2f80068db0abdfd"></a><!-- doxytag: member="bdm::ARX::V" ref="de5b7d83ff5d3f5af2f80068db0abdfd" args="" --> |
---|
144 | <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#de5b7d83ff5d3f5af2f80068db0abdfd">V</a></td></tr> |
---|
145 | |
---|
146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cached value of est.V <br></td></tr> |
---|
147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="740b0582f180ba13cae91d66e9bdb67f"></a><!-- doxytag: member="bdm::ARX::nu" ref="740b0582f180ba13cae91d66e9bdb67f" args="" --> |
---|
148 | double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1ARX.html#740b0582f180ba13cae91d66e9bdb67f">nu</a></td></tr> |
---|
149 | |
---|
150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cached value of est.nu <br></td></tr> |
---|
151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1331865e10fb1ccef65bb4c47fa3be64"></a><!-- doxytag: member="bdm::ARX::frg" ref="1331865e10fb1ccef65bb4c47fa3be64" args="" --> |
---|
152 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#1331865e10fb1ccef65bb4c47fa3be64">frg</a></td></tr> |
---|
153 | |
---|
154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">forgetting factor <br></td></tr> |
---|
155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06e7b3ac03e10017d4288c76888e2865"></a><!-- doxytag: member="bdm::ARX::last_lognc" ref="06e7b3ac03e10017d4288c76888e2865" args="" --> |
---|
156 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BMEF.html#06e7b3ac03e10017d4288c76888e2865">last_lognc</a></td></tr> |
---|
157 | |
---|
158 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cached value of lognc() in the previous step (used in evaluation of <code>ll</code> ) <br></td></tr> |
---|
159 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18d6db4af8ee42077741d9e3618153ca"></a><!-- doxytag: member="bdm::ARX::rv" ref="18d6db4af8ee42077741d9e3618153ca" args="" --> |
---|
160 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#18d6db4af8ee42077741d9e3618153ca">rv</a></td></tr> |
---|
161 | |
---|
162 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Random variable of the posterior. <br></td></tr> |
---|
163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4064b6559d962633e4372b12f4cd204a"></a><!-- doxytag: member="bdm::ARX::ll" ref="4064b6559d962633e4372b12f4cd204a" args="" --> |
---|
164 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a">ll</a></td></tr> |
---|
165 | |
---|
166 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of marginalized data likelihood. <br></td></tr> |
---|
167 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="faff0ad12556fe7dc0e2807d4fd938ee"></a><!-- doxytag: member="bdm::ARX::evalll" ref="faff0ad12556fe7dc0e2807d4fd938ee" args="" --> |
---|
168 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee">evalll</a></td></tr> |
---|
169 | |
---|
170 | <tr><td class="mdescLeft"> </td><td class="mdescRight">If true, the filter will compute likelihood of the data record and store it in <code>ll</code> . Set to false if you want to save computational time. <br></td></tr> |
---|
171 | </table> |
---|
172 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
173 | Linear Autoregressive model with Gaussian noise. |
---|
174 | <p> |
---|
175 | Regression of the following kind: <p class="formulaDsp"> |
---|
176 | <img class="formulaDsp" alt="\[ y_t = \theta_1 \psi_1 + \theta_2 + \psi_2 +\ldots + \theta_n \psi_n + r e_t \]" src="form_61.png"> |
---|
177 | <p> |
---|
178 | where unknown parameters <code>rv</code> are <img class="formulaInl" alt="$[\theta r]$" src="form_51.png">, regression vector <img class="formulaInl" alt="$\psi=\psi(y_{1:t},u_{1:t})$" src="form_52.png"> is a known function of past outputs and exogeneous variables <img class="formulaInl" alt="$u_t$" src="form_53.png">. Distrubances <img class="formulaInl" alt="$e_t$" src="form_54.png"> are supposed to be normally distributed: <p class="formulaDsp"> |
---|
179 | <img class="formulaDsp" alt="\[ e_t \sim \mathcal{N}(0,1). \]" src="form_62.png"> |
---|
180 | <p> |
---|
181 | <p> |
---|
182 | Extension for time-variant parameters <img class="formulaInl" alt="$\theta_t,r_t$" src="form_55.png"> may be achived using exponential forgetting (Kulhavy and Zarrop, 1993). In such a case, the forgetting factor <code>frg</code> <img class="formulaInl" alt="$\in <0,1>$" src="form_56.png"> should be given in the constructor. Time-invariant parameters are estimated for <code>frg</code> = 1. <hr><h2>Member Function Documentation</h2> |
---|
183 | <a class="anchor" name="8bdf2974052e8ce74eb0d4f3791c58a3"></a><!-- doxytag: member="bdm::ARX::bayes" ref="8bdf2974052e8ce74eb0d4f3791c58a3" args="(const vec &dt)" --> |
---|
184 | <div class="memitem"> |
---|
185 | <div class="memproto"> |
---|
186 | <table class="memname"> |
---|
187 | <tr> |
---|
188 | <td class="memname">void bdm::ARX::bayes </td> |
---|
189 | <td>(</td> |
---|
190 | <td class="paramtype">const vec & </td> |
---|
191 | <td class="paramname"> <em>dt</em> </td> |
---|
192 | <td> ) </td> |
---|
193 | <td><code> [inline, virtual]</code></td> |
---|
194 | </tr> |
---|
195 | </table> |
---|
196 | </div> |
---|
197 | <div class="memdoc"> |
---|
198 | |
---|
199 | <p> |
---|
200 | Incremental Bayes rule. |
---|
201 | <p> |
---|
202 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
203 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
204 | <tr><td valign="top"></td><td valign="top"><em>dt</em> </td><td>vector of input data </td></tr> |
---|
205 | </table> |
---|
206 | </dl> |
---|
207 | |
---|
208 | <p>Reimplemented from <a class="el" href="classbdm_1_1BMEF.html#c287f4c0c1ea31b91572ec45351838f1">bdm::BMEF</a>.</p> |
---|
209 | |
---|
210 | <p>References <a class="el" href="bdm_2estim_2arx_8cpp-source.html#l00005">bayes()</a>.</p> |
---|
211 | |
---|
212 | </div> |
---|
213 | </div><p> |
---|
214 | <a class="anchor" name="080a7e531e3aa06694112863b15bc6a4"></a><!-- doxytag: member="bdm::ARX::logpred" ref="080a7e531e3aa06694112863b15bc6a4" args="(const vec &dt) const " --> |
---|
215 | <div class="memitem"> |
---|
216 | <div class="memproto"> |
---|
217 | <table class="memname"> |
---|
218 | <tr> |
---|
219 | <td class="memname">double bdm::ARX::logpred </td> |
---|
220 | <td>(</td> |
---|
221 | <td class="paramtype">const vec & </td> |
---|
222 | <td class="paramname"> <em>dt</em> </td> |
---|
223 | <td> ) </td> |
---|
224 | <td> const<code> [virtual]</code></td> |
---|
225 | </tr> |
---|
226 | </table> |
---|
227 | </div> |
---|
228 | <div class="memdoc"> |
---|
229 | |
---|
230 | <p> |
---|
231 | Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out. |
---|
232 | <p>Reimplemented from <a class="el" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">bdm::BM</a>.</p> |
---|
233 | |
---|
234 | <p>References <a class="el" href="libEF_8h-source.html#l00206">bdm::egiw::_nu()</a>, <a class="el" href="libEF_8h-source.html#l00202">bdm::egiw::_V()</a>, <a class="el" href="arx_8h-source.html#l00038">est</a>, <a class="el" href="libBM_8h-source.html#l00445">bdm::BM::evalll</a>, <a class="el" href="libEF_8h-source.html#l00077">bdm::BMEF::frg</a>, <a class="el" href="libEF_8h-source.html#l00079">bdm::BMEF::last_lognc</a>, <a class="el" href="libEF_8cpp-source.html#l00044">bdm::egiw::lognc()</a>, <a class="el" href="arx_8h-source.html#l00042">nu</a>, <a class="el" href="libDC_8cpp-source.html#l00058">ldmat::opupdt()</a>, <a class="el" href="libEF_8h-source.html#l00208">bdm::egiw::pow()</a>, and <a class="el" href="arx_8h-source.html#l00040">V</a>.</p> |
---|
235 | |
---|
236 | </div> |
---|
237 | </div><p> |
---|
238 | <a class="anchor" name="16b02ae03316751664c22d59d90c1e34"></a><!-- doxytag: member="bdm::ARX::structure_est" ref="16b02ae03316751664c22d59d90c1e34" args="(egiw Eg0)" --> |
---|
239 | <div class="memitem"> |
---|
240 | <div class="memproto"> |
---|
241 | <table class="memname"> |
---|
242 | <tr> |
---|
243 | <td class="memname">ivec bdm::ARX::structure_est </td> |
---|
244 | <td>(</td> |
---|
245 | <td class="paramtype"><a class="el" href="classbdm_1_1egiw.html">egiw</a> </td> |
---|
246 | <td class="paramname"> <em>Eg0</em> </td> |
---|
247 | <td> ) </td> |
---|
248 | <td></td> |
---|
249 | </tr> |
---|
250 | </table> |
---|
251 | </div> |
---|
252 | <div class="memdoc"> |
---|
253 | |
---|
254 | <p> |
---|
255 | Brute force structure estimation. |
---|
256 | <p> |
---|
257 | <dl class="return" compact><dt><b>Returns:</b></dt><dd>indeces of accepted regressors. </dd></dl> |
---|
258 | |
---|
259 | <p>References <a class="el" href="libBM_8h-source.html#l00083">bdm::RV::count()</a>, <a class="el" href="bdm_2estim_2arx_8cpp-source.html#l00130">bdm::egiw_bestbelow()</a>, <a class="el" href="arx_8h-source.html#l00038">est</a>, and <a class="el" href="libEF_8cpp-source.html#l00044">bdm::egiw::lognc()</a>.</p> |
---|
260 | |
---|
261 | </div> |
---|
262 | </div><p> |
---|
263 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
264 | <li><a class="el" href="arx_8h-source.html">arx.h</a><li>bdm/estim/arx.cpp</ul> |
---|
265 | </div> |
---|
266 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 15:29:50 2009 for mixpp by |
---|
267 | <a href="http://www.doxygen.org/index.html"> |
---|
268 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
269 | </body> |
---|
270 | </html> |
---|