24 | | <a name="l00021"></a>00021 <span class="keyword">class </span>RV { |
25 | | <a name="l00022"></a>00022 <span class="keywordtype">int</span> len; |
26 | | <a name="l00023"></a>00023 ivec ids; |
27 | | <a name="l00024"></a>00024 ivec sizes; |
28 | | <a name="l00025"></a>00025 ivec times; |
29 | | <a name="l00026"></a>00026 ivec obs; |
30 | | <a name="l00027"></a>00027 Array<std::string> names; |
31 | | <a name="l00028"></a>00028 |
32 | | <a name="l00029"></a>00029 <span class="keyword">public</span>: |
33 | | <a name="l00031"></a>00031 RV(ivec in_ids, Array<std::string> in_names, ivec in_sizes, ivec in_times, ivec in_obs); |
34 | | <a name="l00033"></a>00033 RV(ivec ids); |
35 | | <a name="l00034"></a>00034 <span class="keyword">friend</span> std::ostream &operator<<(std::ostream &os, <span class="keyword">const</span> RV &rv); |
36 | | <a name="l00035"></a>00035 }; |
37 | | <a name="l00036"></a>00036 |
| 24 | <a name="l00022"></a><a class="code" href="classRV.html">00022</a> <span class="keyword">class </span><a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> { |
| 25 | <a name="l00023"></a>00023 <span class="keywordtype">int</span> len; |
| 26 | <a name="l00024"></a>00024 ivec ids; |
| 27 | <a name="l00025"></a>00025 ivec sizes; |
| 28 | <a name="l00026"></a>00026 ivec times; |
| 29 | <a name="l00027"></a>00027 ivec obs; |
| 30 | <a name="l00028"></a>00028 Array<std::string> names; |
| 31 | <a name="l00029"></a>00029 |
| 32 | <a name="l00030"></a>00030 <span class="keyword">public</span>: |
| 33 | <a name="l00032"></a>00032 <a class="code" href="classRV.html#e46882dec2c30b12be282d34b03417b2" title="Full constructor which is called by the others.">RV</a>(ivec in_ids, Array<std::string> in_names, ivec in_sizes, ivec in_times, ivec in_obs); |
| 34 | <a name="l00034"></a>00034 <a class="code" href="classRV.html#e46882dec2c30b12be282d34b03417b2" title="Full constructor which is called by the others.">RV</a>(ivec ids); |
| 35 | <a name="l00035"></a>00035 <span class="keyword">friend</span> std::ostream &operator<<(std::ostream &os, <span class="keyword">const</span> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &rv); |
| 36 | <a name="l00036"></a>00036 }; |
46 | | <a name="l00046"></a>00046 <span class="keyword">class </span>BM { |
47 | | <a name="l00047"></a>00047 <span class="keyword">public</span>: |
48 | | <a name="l00049"></a>00049 <span class="keywordtype">void</span> bayes(vec dt); |
49 | | <a name="l00051"></a>00051 <span class="keyword">virtual</span> <span class="keywordtype">void</span> bayes(mat Dt); |
50 | | <a name="l00052"></a>00052 }; |
51 | | <a name="l00053"></a>00053 |
52 | | <a name="l00054"></a>00054 <span class="keyword">class </span>epdf { |
53 | | <a name="l00055"></a>00055 RV rv; |
54 | | <a name="l00056"></a>00056 <span class="keyword">public</span>: |
55 | | <a name="l00058"></a>00058 <span class="keyword">virtual</span> vec moment(<span class="keyword">const</span> <span class="keywordtype">int</span> order = 1); |
56 | | <a name="l00059"></a>00059 }; |
57 | | <a name="l00060"></a>00060 |
58 | | <a name="l00061"></a>00061 <span class="keyword">class </span>mpdf { |
59 | | <a name="l00063"></a>00063 RV rv; |
60 | | <a name="l00065"></a>00065 RV rvc; |
61 | | <a name="l00066"></a>00066 <span class="keyword">public</span>: |
62 | | <a name="l00067"></a>00067 |
63 | | <a name="l00069"></a>00069 <span class="keyword">virtual</span> <a class="code" href="classfnc.html" title="Class representing function of variables.">fnc</a> moment(<span class="keyword">const</span> <span class="keywordtype">int</span> order = 1); |
64 | | <a name="l00070"></a>00070 }; |
65 | | <a name="l00071"></a>00071 |
66 | | <a name="l00072"></a>00072 <span class="preprocessor">#endif // BM_H</span> |
67 | | </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 17 17:26:44 2008 for mixpp by |
| 45 | <a name="l00047"></a><a class="code" href="classBM.html">00047</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> { |
| 46 | <a name="l00048"></a>00048 <span class="keyword">public</span>: |
| 47 | <a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="classBM.html#c1b46da4abb4302ed57858558c90d641" title="Incremental Bayes rule.">bayes</a>(vec dt); |
| 48 | <a name="l00052"></a>00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBM.html#c1b46da4abb4302ed57858558c90d641" title="Incremental Bayes rule.">bayes</a>(mat Dt); |
| 49 | <a name="l00053"></a>00053 }; |
| 50 | <a name="l00054"></a>00054 |
| 51 | <a name="l00056"></a><a class="code" href="classepdf.html">00056</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> { |
| 52 | <a name="l00057"></a>00057 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; |
| 53 | <a name="l00058"></a>00058 <span class="keyword">public</span>: |
| 54 | <a name="l00060"></a>00060 <span class="keyword">virtual</span> vec <a class="code" href="classepdf.html#545555f9d561555603911f7d3989611f" title="Returns the required moment of the epdf.">moment</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> order = 1); |
| 55 | <a name="l00061"></a>00061 }; |
| 56 | <a name="l00062"></a>00062 |
| 57 | <a name="l00064"></a><a class="code" href="classmpdf.html">00064</a> <span class="keyword">class </span><a class="code" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> { |
| 58 | <a name="l00066"></a>00066 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; |
| 59 | <a name="l00068"></a>00068 <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rvc; |
| 60 | <a name="l00069"></a>00069 <span class="keyword">public</span>: |
| 61 | <a name="l00070"></a>00070 |
| 62 | <a name="l00072"></a>00072 <span class="keyword">virtual</span> <a class="code" href="classfnc.html" title="Class representing function of variables.">fnc</a> <a class="code" href="classmpdf.html#0863640c439869e8fbbbeb2bd8ea1fc0" title="Returns the required moment of the epdf.">moment</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> order = 1); |
| 63 | <a name="l00073"></a>00073 }; |
| 64 | <a name="l00074"></a>00074 |
| 65 | <a name="l00075"></a>00075 <span class="preprocessor">#endif // BM_H</span> |
| 66 | </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 17 18:00:29 2008 for mixpp by |