[84] | 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: 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> |
---|
[139] | 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
[91] | 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 class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 15 | </ul> |
---|
| 16 | </div> |
---|
| 17 | <div class="tabs"> |
---|
| 18 | <ul> |
---|
| 19 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 22 | </ul> |
---|
| 23 | </div> |
---|
[84] | 24 | </div> |
---|
[91] | 25 | <div class="contents"> |
---|
[171] | 26 | <h1>ARX Class Reference</h1><!-- doxytag: class="ARX" --><!-- doxytag: inherits="BMEF" -->Linear Autoregressive model with Gaussian noise. |
---|
[84] | 27 | <a href="#_details">More...</a> |
---|
| 28 | <p> |
---|
| 29 | <code>#include <<a class="el" href="arx_8h-source.html">arx.h</a>></code> |
---|
| 30 | <p> |
---|
| 31 | <div class="dynheader"> |
---|
| 32 | Inheritance diagram for ARX:</div> |
---|
| 33 | <div class="dynsection"> |
---|
| 34 | <p><center><img src="classARX__inherit__graph.png" border="0" usemap="#ARX__inherit__map" alt="Inheritance graph"></center> |
---|
| 35 | <map name="ARX__inherit__map"> |
---|
[171] | 36 | <area shape="rect" href="classBMEF.html" title="Estimator for Exponential family." alt="" coords="5,84,61,111"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="13,7,53,33"></map> |
---|
[84] | 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 38 | <div class="dynheader"> |
---|
| 39 | Collaboration diagram for ARX:</div> |
---|
| 40 | <div class="dynsection"> |
---|
| 41 | <p><center><img src="classARX__coll__graph.png" border="0" usemap="#ARX__coll__map" alt="Collaboration graph"></center> |
---|
| 42 | <map name="ARX__coll__map"> |
---|
[181] | 43 | <area shape="rect" href="classBMEF.html" title="Estimator for Exponential family." alt="" coords="5,263,61,289"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="12,156,52,183"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="39,7,76,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="69,103,117,129"><area shape="rect" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD)." alt="" coords="139,209,197,236"><area shape="rect" href="classegiw.html" title="Gauss-inverse-Wishart density stored in LD form." alt="" coords="71,316,119,343"><area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="141,103,203,129"><area shape="rect" href="classeEF.html" title="General conjugate exponential family posterior density." alt="" coords="72,209,115,236"></map> |
---|
[84] | 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 45 | |
---|
| 46 | <p> |
---|
| 47 | <a href="classARX-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 48 | <tr><td></td></tr> |
---|
| 49 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[171] | 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="545e269bf7852c81484cf361b54d9917"></a><!-- doxytag: member="ARX::ARX" ref="545e269bf7852c81484cf361b54d9917" args="(const RV &rv, const mat &V0, const double &nu0, const double frg0=1.0)" --> |
---|
| 51 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#545e269bf7852c81484cf361b54d9917">ARX</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classBM.html#af00f0612fabe66241dd507188cdbf88">rv</a>, const mat &V0, const double &nu0, const double frg0=1.0)</td></tr> |
---|
[84] | 52 | |
---|
[99] | 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <br></td></tr> |
---|
[171] | 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5358883a49b52f50755ad8770c2bbdb"></a><!-- doxytag: member="ARX::ARX" ref="a5358883a49b52f50755ad8770c2bbdb" args="(const ARX &A0)" --> |
---|
| 55 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#a5358883a49b52f50755ad8770c2bbdb">ARX</a> (const <a class="el" href="classARX.html">ARX</a> &A0)</td></tr> |
---|
[139] | 56 | |
---|
[171] | 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr> |
---|
[180] | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5de61fbd4f97fa3216760b1f733f5af0"></a><!-- doxytag: member="ARX::_copy_" ref="5de61fbd4f97fa3216760b1f733f5af0" args="(bool changerv=false)" --> |
---|
| 59 | <a class="el" href="classARX.html">ARX</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#5de61fbd4f97fa3216760b1f733f5af0">_copy_</a> (bool changerv=false)</td></tr> |
---|
[171] | 60 | |
---|
| 61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function. <br></td></tr> |
---|
| 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc8c36399e82b2fc504baed845ed2007"></a><!-- doxytag: member="ARX::set_parameters" ref="bc8c36399e82b2fc504baed845ed2007" args="(const ldmat &V0, const double &nu0)" --> |
---|
| 63 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#bc8c36399e82b2fc504baed845ed2007">set_parameters</a> (const <a class="el" href="classldmat.html">ldmat</a> &V0, const double &nu0)</td></tr> |
---|
| 64 | |
---|
[145] | 65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set sufficient statistics. <br></td></tr> |
---|
[171] | 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26925d66dfc366815c497d67b62ee49c"></a><!-- doxytag: member="ARX::set_statistics" ref="26925d66dfc366815c497d67b62ee49c" args="(const BMEF *BM0)" --> |
---|
| 67 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#26925d66dfc366815c497d67b62ee49c">set_statistics</a> (const <a class="el" href="classBMEF.html">BMEF</a> *BM0)</td></tr> |
---|
| 68 | |
---|
| 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get statistics from another model <br></td></tr> |
---|
[139] | 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="29f55b43b8b6f5c4a55f6176aa85c494"></a><!-- doxytag: member="ARX::get_parameters" ref="29f55b43b8b6f5c4a55f6176aa85c494" args="(mat &V0, double &nu0)" --> |
---|
[145] | 71 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#29f55b43b8b6f5c4a55f6176aa85c494">get_parameters</a> (mat &V0, double &nu0)</td></tr> |
---|
[139] | 72 | |
---|
[145] | 73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns sufficient statistics. <br></td></tr> |
---|
[171] | 74 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="14d62abfe355275ea3b8d0c5d40f01a0"></a><!-- doxytag: member="ARX::bayes" ref="14d62abfe355275ea3b8d0c5d40f01a0" args="(const vec &dt, const double w)" --> |
---|
| 75 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#14d62abfe355275ea3b8d0c5d40f01a0">bayes</a> (const vec &dt, const double w)</td></tr> |
---|
[84] | 76 | |
---|
[99] | 77 | <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> |
---|
[171] | 78 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#ba82c956ca893826811aefe1e4af465d">bayes</a> (const vec &dt)</td></tr> |
---|
[84] | 79 | |
---|
[171] | 80 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Incremental Bayes rule. <a href="#ba82c956ca893826811aefe1e4af465d"></a><br></td></tr> |
---|
| 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c13df43e0af87697fda6b457d56a6d45"></a><!-- doxytag: member="ARX::_epdf" ref="c13df43e0af87697fda6b457d56a6d45" args="() const " --> |
---|
| 82 | const <a class="el" href="classepdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#c13df43e0af87697fda6b457d56a6d45">_epdf</a> () const </td></tr> |
---|
| 83 | |
---|
[99] | 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the <a class="el" href="classepdf.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> |
---|
[171] | 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#e7f9e7823aec9bf7ddc3b42d9b3304c4">logpred</a> (const vec &dt) const </td></tr> |
---|
| 86 | |
---|
[181] | 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d75fadb7f828bf134df30919b8baf6b2"></a><!-- doxytag: member="ARX::flatten" ref="d75fadb7f828bf134df30919b8baf6b2" args="(const BMEF *B)" --> |
---|
| 88 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#d75fadb7f828bf134df30919b8baf6b2">flatten</a> (const <a class="el" href="classBMEF.html">BMEF</a> *B)</td></tr> |
---|
[171] | 89 | |
---|
[181] | 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flatten the posterior according to the given <a class="el" href="classBMEF.html" title="Estimator for Exponential family.">BMEF</a> (of the same type!). <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="377f069934f03e08502199bf6bad5e83"></a><!-- doxytag: member="ARX::predictor" ref="377f069934f03e08502199bf6bad5e83" args="(const RV &rv)" --> |
---|
| 92 | <a class="el" href="classenorm.html">enorm</a>< <a class="el" href="classldmat.html">ldmat</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#377f069934f03e08502199bf6bad5e83">predictor</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classBM.html#af00f0612fabe66241dd507188cdbf88">rv</a>)</td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a predictive density (marginal density on data). <br></td></tr> |
---|
[99] | 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#130bb7336aac681ce14b027b8f1409fa">structure_est</a> (<a class="el" href="classegiw.html">egiw</a> Eg0)</td></tr> |
---|
| 96 | |
---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Brute force structure estimation. <a href="#130bb7336aac681ce14b027b8f1409fa"></a><br></td></tr> |
---|
[181] | 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c285f29db290d05428bf1aa2cd7c35ad"></a><!-- doxytag: member="ARX::flatten" ref="c285f29db290d05428bf1aa2cd7c35ad" args="(double nu0)" --> |
---|
| 99 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBMEF.html#c285f29db290d05428bf1aa2cd7c35ad">flatten</a> (double nu0)</td></tr> |
---|
| 100 | |
---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flatten the posterior as if to keep nu0 data. <br></td></tr> |
---|
[171] | 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0186270f75189677f390fe088a9947e9"></a><!-- doxytag: member="ARX::bayesB" ref="0186270f75189677f390fe088a9947e9" args="(const mat &Dt)" --> |
---|
| 103 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#0186270f75189677f390fe088a9947e9">bayesB</a> (const mat &Dt)</td></tr> |
---|
[139] | 104 | |
---|
[84] | 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Batch Bayes rule (columns of Dt are observations). <br></td></tr> |
---|
[180] | 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cd0660f2a1a344b56ac39802708ff165"></a><!-- doxytag: member="ARX::logpred_m" ref="cd0660f2a1a344b56ac39802708ff165" args="(const mat &dt) const " --> |
---|
| 107 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#cd0660f2a1a344b56ac39802708ff165">logpred_m</a> (const mat &dt) const </td></tr> |
---|
| 108 | |
---|
| 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of logpred. <br></td></tr> |
---|
[84] | 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="126bd2595c48e311fc2a7ab72876092a"></a><!-- doxytag: member="ARX::_rv" ref="126bd2595c48e311fc2a7ab72876092a" args="() const " --> |
---|
| 111 | const <a class="el" href="classRV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#126bd2595c48e311fc2a7ab72876092a">_rv</a> () const </td></tr> |
---|
| 112 | |
---|
| 113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87f4a547d2c29180be88175e5eab9c88"></a><!-- doxytag: member="ARX::_ll" ref="87f4a547d2c29180be88175e5eab9c88" args="() const " --> |
---|
| 115 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#87f4a547d2c29180be88175e5eab9c88">_ll</a> () const </td></tr> |
---|
| 116 | |
---|
| 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[171] | 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1ffa9f23669aabecc3760c06c6987522"></a><!-- doxytag: member="ARX::set_evalll" ref="1ffa9f23669aabecc3760c06c6987522" args="(bool evl0)" --> |
---|
| 119 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#1ffa9f23669aabecc3760c06c6987522">set_evalll</a> (bool evl0)</td></tr> |
---|
| 120 | |
---|
| 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[84] | 122 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[99] | 123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="691d023662beffa1dda611b416c0e27e"></a><!-- doxytag: member="ARX::est" ref="691d023662beffa1dda611b416c0e27e" args="" --> |
---|
| 124 | <a class="el" href="classegiw.html">egiw</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#691d023662beffa1dda611b416c0e27e">est</a></td></tr> |
---|
[84] | 125 | |
---|
[99] | 126 | <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> |
---|
| 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2291297861dd74ca0175a01f910a0ef7"></a><!-- doxytag: member="ARX::V" ref="2291297861dd74ca0175a01f910a0ef7" args="" --> |
---|
| 128 | <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#2291297861dd74ca0175a01f910a0ef7">V</a></td></tr> |
---|
[84] | 129 | |
---|
[99] | 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cached value of est.V <br></td></tr> |
---|
| 131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4182c281098b2d86b62518a7493d9be"></a><!-- doxytag: member="ARX::nu" ref="a4182c281098b2d86b62518a7493d9be" args="" --> |
---|
| 132 | double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classARX.html#a4182c281098b2d86b62518a7493d9be">nu</a></td></tr> |
---|
| 133 | |
---|
| 134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cached value of est.nu <br></td></tr> |
---|
[171] | 135 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="538d632e59f9afa8daa1de74da12ce71"></a><!-- doxytag: member="ARX::frg" ref="538d632e59f9afa8daa1de74da12ce71" args="" --> |
---|
| 136 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBMEF.html#538d632e59f9afa8daa1de74da12ce71">frg</a></td></tr> |
---|
[99] | 137 | |
---|
| 138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">forgetting factor <br></td></tr> |
---|
[171] | 139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="308cf5d4133cd471fdf1ecd5dfa09d02"></a><!-- doxytag: member="ARX::last_lognc" ref="308cf5d4133cd471fdf1ecd5dfa09d02" args="" --> |
---|
| 140 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBMEF.html#308cf5d4133cd471fdf1ecd5dfa09d02">last_lognc</a></td></tr> |
---|
[99] | 141 | |
---|
[106] | 142 | <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> |
---|
[84] | 143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af00f0612fabe66241dd507188cdbf88"></a><!-- doxytag: member="ARX::rv" ref="af00f0612fabe66241dd507188cdbf88" args="" --> |
---|
| 144 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#af00f0612fabe66241dd507188cdbf88">rv</a></td></tr> |
---|
| 145 | |
---|
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Random variable of the posterior. <br></td></tr> |
---|
| 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5623fef6572a08c2b53b8c87b82dc979"></a><!-- doxytag: member="ARX::ll" ref="5623fef6572a08c2b53b8c87b82dc979" args="" --> |
---|
| 148 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979">ll</a></td></tr> |
---|
| 149 | |
---|
| 150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of marginalized data likelihood. <br></td></tr> |
---|
| 151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf6fb59b30141074f8ee1e2f43d03129"></a><!-- doxytag: member="ARX::evalll" ref="bf6fb59b30141074f8ee1e2f43d03129" args="" --> |
---|
| 152 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#bf6fb59b30141074f8ee1e2f43d03129">evalll</a></td></tr> |
---|
| 153 | |
---|
[171] | 154 | <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> |
---|
[84] | 155 | </table> |
---|
| 156 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
[99] | 157 | Linear Autoregressive model with Gaussian noise. |
---|
[91] | 158 | <p> |
---|
[99] | 159 | Regression of the following kind: <p class="formulaDsp"> |
---|
| 160 | <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"> |
---|
| 161 | <p> |
---|
| 162 | 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"> |
---|
| 163 | <img class="formulaDsp" alt="\[ e_t \sim \mathcal{N}(0,1). \]" src="form_62.png"> |
---|
| 164 | <p> |
---|
| 165 | <p> |
---|
| 166 | 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> |
---|
[171] | 167 | <a class="anchor" name="ba82c956ca893826811aefe1e4af465d"></a><!-- doxytag: member="ARX::bayes" ref="ba82c956ca893826811aefe1e4af465d" args="(const vec &dt)" --> |
---|
| 168 | <div class="memitem"> |
---|
| 169 | <div class="memproto"> |
---|
| 170 | <table class="memname"> |
---|
| 171 | <tr> |
---|
| 172 | <td class="memname">void ARX::bayes </td> |
---|
| 173 | <td>(</td> |
---|
| 174 | <td class="paramtype">const vec & </td> |
---|
| 175 | <td class="paramname"> <em>dt</em> </td> |
---|
| 176 | <td> ) </td> |
---|
| 177 | <td><code> [inline, virtual]</code></td> |
---|
| 178 | </tr> |
---|
| 179 | </table> |
---|
| 180 | </div> |
---|
| 181 | <div class="memdoc"> |
---|
| 182 | |
---|
| 183 | <p> |
---|
| 184 | Incremental Bayes rule. |
---|
| 185 | <p> |
---|
| 186 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 187 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 188 | <tr><td valign="top"></td><td valign="top"><em>dt</em> </td><td>vector of input data </td></tr> |
---|
| 189 | </table> |
---|
| 190 | </dl> |
---|
| 191 | |
---|
| 192 | <p>Reimplemented from <a class="el" href="classBMEF.html#52b7719312d545215cca1ff87722a35a">BMEF</a>.</p> |
---|
| 193 | |
---|
| 194 | <p>References <a class="el" href="bdm_2estim_2arx_8cpp-source.html#l00005">bayes()</a>.</p> |
---|
| 195 | |
---|
| 196 | </div> |
---|
| 197 | </div><p> |
---|
| 198 | <a class="anchor" name="e7f9e7823aec9bf7ddc3b42d9b3304c4"></a><!-- doxytag: member="ARX::logpred" ref="e7f9e7823aec9bf7ddc3b42d9b3304c4" args="(const vec &dt) const " --> |
---|
| 199 | <div class="memitem"> |
---|
| 200 | <div class="memproto"> |
---|
| 201 | <table class="memname"> |
---|
| 202 | <tr> |
---|
| 203 | <td class="memname">double ARX::logpred </td> |
---|
| 204 | <td>(</td> |
---|
| 205 | <td class="paramtype">const vec & </td> |
---|
| 206 | <td class="paramname"> <em>dt</em> </td> |
---|
| 207 | <td> ) </td> |
---|
| 208 | <td> const<code> [virtual]</code></td> |
---|
| 209 | </tr> |
---|
| 210 | </table> |
---|
| 211 | </div> |
---|
| 212 | <div class="memdoc"> |
---|
| 213 | |
---|
| 214 | <p> |
---|
| 215 | Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out. |
---|
| 216 | <p>Reimplemented from <a class="el" href="classBM.html#8a8ce6df431689964c41cc6c849cfd06">BM</a>.</p> |
---|
| 217 | |
---|
[181] | 218 | <p>References <a class="el" href="libEF_8h-source.html#l00189">egiw::_nu()</a>, <a class="el" href="libEF_8h-source.html#l00187">egiw::_V()</a>, <a class="el" href="arx_8h-source.html#l00039">est</a>, <a class="el" href="libBM_8h-source.html#l00322">BM::evalll</a>, <a class="el" href="libEF_8h-source.html#l00078">BMEF::frg</a>, <a class="el" href="libEF_8h-source.html#l00080">BMEF::last_lognc</a>, <a class="el" href="libEF_8cpp-source.html#l00044">egiw::lognc()</a>, <a class="el" href="arx_8h-source.html#l00043">nu</a>, <a class="el" href="libDC_8cpp-source.html#l00058">ldmat::opupdt()</a>, <a class="el" href="libEF_8cpp-source.html#l00101">egiw::pow()</a>, and <a class="el" href="arx_8h-source.html#l00041">V</a>.</p> |
---|
[171] | 219 | |
---|
| 220 | </div> |
---|
| 221 | </div><p> |
---|
[99] | 222 | <a class="anchor" name="130bb7336aac681ce14b027b8f1409fa"></a><!-- doxytag: member="ARX::structure_est" ref="130bb7336aac681ce14b027b8f1409fa" args="(egiw Eg0)" --> |
---|
[84] | 223 | <div class="memitem"> |
---|
| 224 | <div class="memproto"> |
---|
| 225 | <table class="memname"> |
---|
| 226 | <tr> |
---|
[99] | 227 | <td class="memname">ivec ARX::structure_est </td> |
---|
[84] | 228 | <td>(</td> |
---|
[99] | 229 | <td class="paramtype"><a class="el" href="classegiw.html">egiw</a> </td> |
---|
| 230 | <td class="paramname"> <em>Eg0</em> </td> |
---|
[84] | 231 | <td> ) </td> |
---|
[139] | 232 | <td></td> |
---|
[84] | 233 | </tr> |
---|
| 234 | </table> |
---|
| 235 | </div> |
---|
| 236 | <div class="memdoc"> |
---|
| 237 | |
---|
| 238 | <p> |
---|
[99] | 239 | Brute force structure estimation. |
---|
[84] | 240 | <p> |
---|
[99] | 241 | <dl class="return" compact><dt><b>Returns:</b></dt><dd>indeces of accepted regressors. </dd></dl> |
---|
[84] | 242 | |
---|
[181] | 243 | <p>References <a class="el" href="libBM_8h-source.html#l00072">RV::count()</a>, <a class="el" href="arx_8h-source.html#l00039">est</a>, <a class="el" href="libEF_8cpp-source.html#l00044">egiw::lognc()</a>, and <a class="el" href="libBM_8h-source.html#l00318">BM::rv</a>.</p> |
---|
[84] | 244 | |
---|
| 245 | </div> |
---|
| 246 | </div><p> |
---|
[99] | 247 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[145] | 248 | <li>work/git/mixpp/bdm/estim/<a class="el" href="arx_8h-source.html">arx.h</a><li>work/git/mixpp/bdm/estim/arx.cpp</ul> |
---|
[91] | 249 | </div> |
---|
[181] | 250 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 15 15:57:12 2008 for mixpp by |
---|
[84] | 251 | <a href="http://www.doxygen.org/index.html"> |
---|
[139] | 252 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
[84] | 253 | </body> |
---|
| 254 | </html> |
---|