58 | | <a name="l00075"></a>00075 <span class="keywordtype">int</span> dimy; |
59 | | <a name="l00076"></a>00076 <span class="keyword">public</span>: |
60 | | <a name="l00078"></a><a class="code" href="classfnc.html#7fad2e6cb35909a165ec5a53def4a18c">00078</a> <span class="keyword">virtual</span> vec <a class="code" href="classfnc.html#7fad2e6cb35909a165ec5a53def4a18c" title="function evaluates numerical value of $f(x)$ at $x=cond$">eval</a>(<span class="keyword">const</span> vec &cond){}; <span class="comment">//Fixme: virtual?</span> |
61 | | <a name="l00080"></a><a class="code" href="classfnc.html#a8891973d0ca48ce38e1886df45ca298">00080</a> <span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="classfnc.html#a8891973d0ca48ce38e1886df45ca298" title="access function">_dimy</a>()<span class="keyword">const</span>{<span class="keywordflow">return</span> dimy;} |
62 | | <a name="l00081"></a>00081 }; |
63 | | <a name="l00082"></a>00082 |
64 | | <a name="l00084"></a><a class="code" href="classBM.html">00084</a> <span class="keyword">class </span><a class="code" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a> { |
65 | | <a name="l00085"></a>00085 <span class="keyword">public</span>: |
66 | | <a name="l00087"></a><a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979">00087</a> <span class="keywordtype">double</span> <a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979" title="Logarithm of marginalized data likelihood.">ll</a>; |
67 | | <a name="l00088"></a>00088 |
68 | | <a name="l00090"></a><a class="code" href="classBM.html#ef32a12f4f89e4000bf5390ceda762ae">00090</a> <a class="code" href="classBM.html#ef32a12f4f89e4000bf5390ceda762ae" title="Default constructor.">BM</a>(){<a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979" title="Logarithm of marginalized data likelihood.">ll</a>=0;}; |
69 | | <a name="l00091"></a>00091 |
70 | | <a name="l00096"></a>00096 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBM.html#c52edf4ad6e1dff9bf64b9e1e0cfb1f0" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &dt, <span class="keywordtype">bool</span> evall=<span class="keyword">true</span> ) = 0; |
71 | | <a name="l00098"></a>00098 <span class="keywordtype">void</span> <a class="code" href="classBM.html#c52edf4ad6e1dff9bf64b9e1e0cfb1f0" title="Incremental Bayes rule.">bayes</a> ( mat Dt ); |
72 | | <a name="l00099"></a>00099 }; |
73 | | <a name="l00100"></a>00100 |
74 | | <a name="l00102"></a><a class="code" href="classepdf.html">00102</a> <span class="keyword">class </span><a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> { |
75 | | <a name="l00103"></a>00103 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; |
76 | | <a name="l00104"></a>00104 <span class="keyword">public</span>: |
77 | | <a name="l00106"></a>00106 <span class="comment">// virtual vec moment ( const int order = 1 );</span> |
78 | | <a name="l00108"></a>00108 <span class="comment"></span> <span class="keyword">virtual</span> vec <a class="code" href="classepdf.html#7f74d871d50b9ff360f1b3879092a9fa" title="Returns the required moment of the epdf.">sample</a> ()=0; |
79 | | <a name="l00110"></a><a class="code" href="classepdf.html#f333ceeb88ebc37d81fcd4cea4526bfc">00110</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classepdf.html#f333ceeb88ebc37d81fcd4cea4526bfc" title="Compute probability of argument val.">eval</a>(<span class="keyword">const</span> vec &val){}; |
80 | | <a name="l00111"></a>00111 }; |
81 | | <a name="l00112"></a>00112 |
82 | | <a name="l00114"></a><a class="code" href="classmpdf.html">00114</a> <span class="keyword">class </span><a class="code" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> { |
83 | | <a name="l00116"></a>00116 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; |
84 | | <a name="l00118"></a>00118 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rvc; |
85 | | <a name="l00119"></a>00119 <span class="keyword">public</span>: |
86 | | <a name="l00120"></a>00120 |
87 | | <a name="l00122"></a>00122 <span class="comment">// virtual fnc moment ( const int order = 1 );</span> |
88 | | <a name="l00124"></a><a class="code" href="classmpdf.html#c20c796f8d0a201f0897299150e45a41">00124</a> <span class="comment"></span> <span class="keyword">virtual</span> vec <a class="code" href="classmpdf.html#c20c796f8d0a201f0897299150e45a41" title="Returns the required moment of the epdf.">samplecond</a> (vec &cond, <span class="keywordtype">double</span> lik){}; |
89 | | <a name="l00125"></a>00125 <span class="keyword">virtual</span> <span class="keywordtype">void</span> condition (vec &cond){}; |
90 | | <a name="l00126"></a>00126 }; |
91 | | <a name="l00127"></a>00127 |
92 | | <a name="l00134"></a><a class="code" href="classDS.html">00134</a> <span class="keyword">class </span><a class="code" href="classDS.html" title="Abstract class for discrete-time sources of data.">DS</a> { |
93 | | <a name="l00135"></a>00135 <span class="keyword">protected</span>: |
94 | | <a name="l00137"></a><a class="code" href="classDS.html#1012025a1a3a1fdd24aa48698a3d3454">00137</a> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classDS.html#1012025a1a3a1fdd24aa48698a3d3454" title="Observed variables, returned by getdata().">Drv</a>; |
95 | | <a name="l00139"></a><a class="code" href="classDS.html#0a88ffaeb3c7c2cf30c69bc41a000629">00139</a> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classDS.html#0a88ffaeb3c7c2cf30c69bc41a000629" title="Action variables, accepted by write().">Urv</a>; <span class="comment">//</span> |
96 | | <a name="l00140"></a>00140 <span class="keyword">public</span>: |
97 | | <a name="l00142"></a>00142 <span class="keywordtype">void</span> <a class="code" href="classDS.html#db2dacc9e71a36eeb9c5c2ee402eeeb1" title="Returns full vector of observed data.">getdata</a>(vec &dt); |
98 | | <a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="classDS.html#db2dacc9e71a36eeb9c5c2ee402eeeb1" title="Returns full vector of observed data.">getdata</a>(vec &dt, ivec &indeces); |
99 | | <a name="l00146"></a>00146 <span class="keywordtype">void</span> <a class="code" href="classDS.html#0dfb6788b70c0d48a1f5276ed6c93039" title="Accepts action variable and schedule it for application.">write</a>(vec &ut); |
100 | | <a name="l00148"></a>00148 <span class="keywordtype">void</span> <a class="code" href="classDS.html#0dfb6788b70c0d48a1f5276ed6c93039" title="Accepts action variable and schedule it for application.">write</a>(vec &ut, ivec &indeces); |
101 | | <a name="l00154"></a>00154 <span class="keywordtype">void</span> <a class="code" href="classDS.html#9a35ca9c9321dce2bf63bf668f785b75" title="Method that assigns random variables to the datasource. Typically, the datasource...">linkrvs</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &drv, <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &urv); |
102 | | <a name="l00155"></a>00155 |
103 | | <a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="classDS.html#470ba89e8e7c3c4d830803221b4e9be6" title="Moves from $t$ to $t+1$, i.e. perfroms the actions and reads response of the system...">step</a>(); |
104 | | <a name="l00158"></a>00158 }; |
105 | | <a name="l00159"></a>00159 |
106 | | <a name="l00160"></a>00160 |
107 | | <a name="l00161"></a>00161 <span class="preprocessor">#endif // BM_H</span> |
108 | | </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Feb 17 16:14:14 2008 for mixpp by |
| 59 | <a name="l00075"></a>00075 <span class="keyword">protected</span>: |
| 60 | <a name="l00076"></a>00076 <span class="keywordtype">int</span> dimy; |
| 61 | <a name="l00077"></a>00077 <span class="keyword">public</span>: |
| 62 | <a name="l00079"></a><a class="code" href="classfnc.html#7fad2e6cb35909a165ec5a53def4a18c">00079</a> <span class="keyword">virtual</span> vec <a class="code" href="classfnc.html#7fad2e6cb35909a165ec5a53def4a18c" title="function evaluates numerical value of $f(x)$ at $x=cond$">eval</a>(<span class="keyword">const</span> vec &cond){}; <span class="comment">//Fixme: virtual?</span> |
| 63 | <a name="l00081"></a><a class="code" href="classfnc.html#a8891973d0ca48ce38e1886df45ca298">00081</a> <span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="classfnc.html#a8891973d0ca48ce38e1886df45ca298" title="access function">_dimy</a>()<span class="keyword">const</span>{<span class="keywordflow">return</span> dimy;} |
| 64 | <a name="l00082"></a>00082 }; |
| 65 | <a name="l00083"></a>00083 |
| 66 | <a name="l00087"></a><a class="code" href="classBM.html">00087</a> <span class="keyword">class </span><a class="code" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a> { |
| 67 | <a name="l00088"></a>00088 <span class="keyword">public</span>: |
| 68 | <a name="l00090"></a><a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979">00090</a> <span class="keywordtype">double</span> <a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979" title="Logarithm of marginalized data likelihood.">ll</a>; |
| 69 | <a name="l00092"></a><a class="code" href="classBM.html#bf6fb59b30141074f8ee1e2f43d03129">00092</a> <span class="keywordtype">bool</span> <a class="code" href="classBM.html#bf6fb59b30141074f8ee1e2f43d03129" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a>; |
| 70 | <a name="l00093"></a>00093 |
| 71 | <a name="l00095"></a><a class="code" href="classBM.html#ef32a12f4f89e4000bf5390ceda762ae">00095</a> <a class="code" href="classBM.html#ef32a12f4f89e4000bf5390ceda762ae" title="Default constructor.">BM</a>():<a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979" title="Logarithm of marginalized data likelihood.">ll</a>(0),evall(true){}; |
| 72 | <a name="l00096"></a>00096 |
| 73 | <a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBM.html#a892eff438aab2dd1a9e2efcb7fb5bdf" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &dt) = 0; |
| 74 | <a name="l00102"></a>00102 <span class="keywordtype">void</span> <a class="code" href="classBM.html#a892eff438aab2dd1a9e2efcb7fb5bdf" title="Incremental Bayes rule.">bayes</a> ( mat Dt ); |
| 75 | <a name="l00104"></a>00104 <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* <a class="code" href="classBM.html#a5b8f6c8a872738cfaa30ab010e8c077" title="Returns a pointer to the epdf representing posterior density on parameters. Use with...">_epdf</a>(); |
| 76 | <a name="l00105"></a>00105 }; |
| 77 | <a name="l00106"></a>00106 |
| 78 | <a name="l00108"></a><a class="code" href="classepdf.html">00108</a> <span class="keyword">class </span><a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> { |
| 79 | <a name="l00109"></a>00109 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; |
| 80 | <a name="l00110"></a>00110 <span class="keyword">public</span>: |
| 81 | <a name="l00112"></a>00112 <span class="comment">// virtual vec moment ( const int order = 1 );</span> |
| 82 | <a name="l00114"></a>00114 <span class="comment"></span> <span class="keyword">virtual</span> vec <a class="code" href="classepdf.html#7f74d871d50b9ff360f1b3879092a9fa" title="Returns the required moment of the epdf.">sample</a> ()=0; |
| 83 | <a name="l00116"></a><a class="code" href="classepdf.html#f333ceeb88ebc37d81fcd4cea4526bfc">00116</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classepdf.html#f333ceeb88ebc37d81fcd4cea4526bfc" title="Compute probability of argument val.">eval</a>(<span class="keyword">const</span> vec &val){}; |
| 84 | <a name="l00117"></a>00117 }; |
| 85 | <a name="l00118"></a>00118 |
| 86 | <a name="l00120"></a><a class="code" href="classmpdf.html">00120</a> <span class="keyword">class </span><a class="code" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> { |
| 87 | <a name="l00122"></a>00122 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; |
| 88 | <a name="l00124"></a>00124 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rvc; |
| 89 | <a name="l00125"></a>00125 <span class="keyword">public</span>: |
| 90 | <a name="l00126"></a>00126 |
| 91 | <a name="l00128"></a>00128 <span class="comment">// virtual fnc moment ( const int order = 1 );</span> |
| 92 | <a name="l00130"></a><a class="code" href="classmpdf.html#c20c796f8d0a201f0897299150e45a41">00130</a> <span class="comment"></span> <span class="keyword">virtual</span> vec <a class="code" href="classmpdf.html#c20c796f8d0a201f0897299150e45a41" title="Returns the required moment of the epdf.">samplecond</a> (vec &cond, <span class="keywordtype">double</span> lik){}; |
| 93 | <a name="l00131"></a>00131 <span class="keyword">virtual</span> <span class="keywordtype">void</span> condition (vec &cond){}; |
| 94 | <a name="l00132"></a>00132 }; |
| 95 | <a name="l00133"></a>00133 |
| 96 | <a name="l00140"></a><a class="code" href="classDS.html">00140</a> <span class="keyword">class </span><a class="code" href="classDS.html" title="Abstract class for discrete-time sources of data.">DS</a> { |
| 97 | <a name="l00141"></a>00141 <span class="keyword">protected</span>: |
| 98 | <a name="l00143"></a><a class="code" href="classDS.html#1012025a1a3a1fdd24aa48698a3d3454">00143</a> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classDS.html#1012025a1a3a1fdd24aa48698a3d3454" title="Observed variables, returned by getdata().">Drv</a>; |
| 99 | <a name="l00145"></a><a class="code" href="classDS.html#0a88ffaeb3c7c2cf30c69bc41a000629">00145</a> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classDS.html#0a88ffaeb3c7c2cf30c69bc41a000629" title="Action variables, accepted by write().">Urv</a>; <span class="comment">//</span> |
| 100 | <a name="l00146"></a>00146 <span class="keyword">public</span>: |
| 101 | <a name="l00148"></a>00148 <span class="keywordtype">void</span> <a class="code" href="classDS.html#db2dacc9e71a36eeb9c5c2ee402eeeb1" title="Returns full vector of observed data.">getdata</a>(vec &dt); |
| 102 | <a name="l00150"></a>00150 <span class="keywordtype">void</span> <a class="code" href="classDS.html#db2dacc9e71a36eeb9c5c2ee402eeeb1" title="Returns full vector of observed data.">getdata</a>(vec &dt, ivec &indeces); |
| 103 | <a name="l00152"></a>00152 <span class="keywordtype">void</span> <a class="code" href="classDS.html#0dfb6788b70c0d48a1f5276ed6c93039" title="Accepts action variable and schedule it for application.">write</a>(vec &ut); |
| 104 | <a name="l00154"></a>00154 <span class="keywordtype">void</span> <a class="code" href="classDS.html#0dfb6788b70c0d48a1f5276ed6c93039" title="Accepts action variable and schedule it for application.">write</a>(vec &ut, ivec &indeces); |
| 105 | <a name="l00160"></a>00160 <span class="keywordtype">void</span> <a class="code" href="classDS.html#9a35ca9c9321dce2bf63bf668f785b75" title="Method that assigns random variables to the datasource. Typically, the datasource...">linkrvs</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &drv, <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &urv); |
| 106 | <a name="l00161"></a>00161 |
| 107 | <a name="l00163"></a>00163 <span class="keywordtype">void</span> <a class="code" href="classDS.html#470ba89e8e7c3c4d830803221b4e9be6" title="Moves from $t$ to $t+1$, i.e. perfroms the actions and reads response of the system...">step</a>(); |
| 108 | <a name="l00164"></a>00164 }; |
| 109 | <a name="l00165"></a>00165 |
| 110 | <a name="l00166"></a>00166 |
| 111 | <a name="l00167"></a>00167 <span class="preprocessor">#endif // BM_H</span> |
| 112 | </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Feb 18 21:48:39 2008 for mixpp by |