Show
Ignore:
Timestamp:
01/23/08 11:32:31 (16 years ago)
Author:
smidl
Message:

Kalmany funkci, PF nefunkci

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/html/libBM_8h-source.html

    r7 r8  
    3333<a name="l00035"></a>00035         <span class="keywordtype">void</span> init ( ivec in_ids, Array&lt;std::string&gt; in_names, ivec in_sizes, ivec in_times, ivec in_obs ); 
    3434<a name="l00036"></a>00036 <span class="keyword">public</span>: 
    35 <a name="l00038"></a>00038         <a class="code" href="classRV.html#e46882dec2c30b12be282d34b03417b2" title="Full constructor which is called by the others.">RV</a> ( ivec in_ids, Array&lt;std::string&gt; in_names, ivec in_sizes, ivec in_times, ivec in_obs ); 
    36 <a name="l00040"></a>00040         <a class="code" href="classRV.html#e46882dec2c30b12be282d34b03417b2" title="Full constructor which is called by the others.">RV</a> ( ivec ids ); 
    37 <a name="l00042"></a>00042         <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classRV.html#cad6f15535d10437f6690cb4492176a8" title="Printing output e.g. for debugging.">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv ); 
    38 <a name="l00043"></a>00043  
    39 <a name="l00045"></a>00045         ivec <a class="code" href="classRV.html#45b869bced40dc3fa0df584aaf8228c0" title="Find indexes of another rv in self.">rvfind</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv2); 
    40 <a name="l00047"></a>00047         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#f47ab0015ebac822da3b2e00f42a8fc6" title="Add (concat) another variable to the current one.">rvadd</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv2); 
    41 <a name="l00049"></a>00049         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#269023ac4d41b21c4e1f7f17db1603b9" title="Subtract another variable from the current one.">rvsubt</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv2); 
    42 <a name="l00051"></a>00051         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#70a53f2bc37929bae899b0b24cda9d8e" title="Select only variables at indeces ind.">rvsubselect</a>(ivec ind); 
    43 <a name="l00053"></a>00053         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#28bbcb8873bafdac317bafb7b481cc45" title="Select only variables at indeces ind.">operator()</a>(ivec ind); 
    44 <a name="l00054"></a>00054 }; 
    45 <a name="l00055"></a>00055  
    46 <a name="l00056"></a>00056  
    47 <a name="l00057"></a>00057  
    48 <a name="l00058"></a>00058  
    49 <a name="l00060"></a><a class="code" href="classfnc.html">00060</a> <span class="keyword">class </span><a class="code" href="classfnc.html" title="Class representing function of variables.">fnc</a> { 
    50 <a name="l00061"></a>00061         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; 
    51 <a name="l00062"></a>00062 }; 
     35<a name="l00038"></a>00038         <a class="code" href="classRV.html#6a22f5c06d6403870d4e414b1993bf9e" title="Empty constructor will be set later.">RV</a> ( ivec in_ids, Array&lt;std::string&gt; in_names, ivec in_sizes, ivec in_times, ivec in_obs ); 
     36<a name="l00040"></a>00040         <a class="code" href="classRV.html#6a22f5c06d6403870d4e414b1993bf9e" title="Empty constructor will be set later.">RV</a> ( ivec ids ); 
     37<a name="l00042"></a>00042         <a class="code" href="classRV.html#6a22f5c06d6403870d4e414b1993bf9e" title="Empty constructor will be set later.">RV</a> (); 
     38<a name="l00043"></a>00043          
     39<a name="l00045"></a>00045         <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classRV.html#cad6f15535d10437f6690cb4492176a8" title="Printing output e.g. for debugging.">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv ); 
     40<a name="l00046"></a>00046  
     41<a name="l00048"></a>00048         <span class="keywordtype">int</span> <a class="code" href="classRV.html#a764092415291a0e6452a3711749d18e" title="Return length (number of scalars) of the RV.">length</a>(); 
     42<a name="l00050"></a>00050         ivec <a class="code" href="classRV.html#45b869bced40dc3fa0df584aaf8228c0" title="Find indexes of another rv in self.">rvfind</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv2); 
     43<a name="l00052"></a>00052         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#f47ab0015ebac822da3b2e00f42a8fc6" title="Add (concat) another variable to the current one.">rvadd</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv2); 
     44<a name="l00054"></a>00054         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#269023ac4d41b21c4e1f7f17db1603b9" title="Subtract another variable from the current one.">rvsubt</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv2); 
     45<a name="l00056"></a>00056         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#70a53f2bc37929bae899b0b24cda9d8e" title="Select only variables at indeces ind.">rvsubselect</a>(ivec ind); 
     46<a name="l00058"></a>00058         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classRV.html#28bbcb8873bafdac317bafb7b481cc45" title="Select only variables at indeces ind.">operator()</a>(ivec ind); 
     47<a name="l00060"></a>00060         <span class="keywordtype">void</span> <a class="code" href="classRV.html#e0a158d53ab9430627241f844f4c9a60" title="Generate new RV with time shifted by delta.">t</a>(<span class="keywordtype">int</span> delta); 
     48<a name="l00061"></a>00061 }; 
     49<a name="l00062"></a>00062  
    5250<a name="l00063"></a>00063  
    53 <a name="l00065"></a><a class="code" href="classBM.html">00065</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> { 
    54 <a name="l00066"></a>00066 <span class="keyword">public</span>: 
    55 <a name="l00071"></a>00071         <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 &amp;dt, <span class="keywordtype">bool</span> evall=<span class="keyword">true</span> ) = 0; 
    56 <a name="l00073"></a>00073         <span class="keywordtype">void</span> <a class="code" href="classBM.html#c52edf4ad6e1dff9bf64b9e1e0cfb1f0" title="Incremental Bayes rule.">bayes</a> ( mat Dt ); 
    57 <a name="l00074"></a>00074 }; 
    58 <a name="l00075"></a>00075  
    59 <a name="l00077"></a><a class="code" href="classepdf.html">00077</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> { 
    60 <a name="l00078"></a>00078         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; 
    61 <a name="l00079"></a>00079 <span class="keyword">public</span>: 
    62 <a name="l00081"></a>00081         <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 ); 
    63 <a name="l00082"></a>00082 }; 
    64 <a name="l00083"></a>00083  
    65 <a name="l00085"></a><a class="code" href="classmpdf.html">00085</a> <span class="keyword">class </span><a class="code" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> { 
    66 <a name="l00087"></a>00087         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; 
    67 <a name="l00089"></a>00089         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rvc; 
    68 <a name="l00090"></a>00090 <span class="keyword">public</span>: 
    69 <a name="l00091"></a>00091  
    70 <a name="l00093"></a>00093         <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 ); 
    71 <a name="l00094"></a>00094 }; 
    72 <a name="l00095"></a>00095  
    73 <a name="l00096"></a>00096 <span class="preprocessor">#endif // BM_H</span> 
    74 </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sun Jan 20 12:47:33 2008 for mixpp by&nbsp; 
     51<a name="l00064"></a>00064  
     52<a name="l00065"></a>00065  
     53<a name="l00067"></a><a class="code" href="classfnc.html">00067</a> <span class="keyword">class </span><a class="code" href="classfnc.html" title="Class representing function of variables.">fnc</a> { 
     54<a name="l00068"></a>00068         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; 
     55<a name="l00069"></a>00069 }; 
     56<a name="l00070"></a>00070  
     57<a name="l00072"></a><a class="code" href="classBM.html">00072</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> { 
     58<a name="l00073"></a>00073 <span class="keyword">public</span>: 
     59<a name="l00075"></a><a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979">00075</a>         <span class="keywordtype">double</span> <a class="code" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979" title="Logarithm of marginalized data likelihood.">ll</a>; 
     60<a name="l00076"></a>00076  
     61<a name="l00081"></a>00081         <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 &amp;dt, <span class="keywordtype">bool</span> evall=<span class="keyword">true</span> ) = 0; 
     62<a name="l00083"></a>00083         <span class="keywordtype">void</span> <a class="code" href="classBM.html#c52edf4ad6e1dff9bf64b9e1e0cfb1f0" title="Incremental Bayes rule.">bayes</a> ( mat Dt ); 
     63<a name="l00084"></a>00084 }; 
     64<a name="l00085"></a>00085  
     65<a name="l00087"></a><a class="code" href="classepdf.html">00087</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> { 
     66<a name="l00088"></a>00088         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; 
     67<a name="l00089"></a>00089 <span class="keyword">public</span>: 
     68<a name="l00091"></a>00091 <span class="comment">//      virtual vec moment ( const int order = 1 );</span> 
     69<a name="l00093"></a><a class="code" href="classepdf.html#e6ce993603a95c2645eb86305ea51396">00093</a> <span class="comment"></span>        <span class="keyword">virtual</span> vec <a class="code" href="classepdf.html#e6ce993603a95c2645eb86305ea51396" title="Returns the required moment of the epdf.">sample</a> (){}; 
     70<a name="l00094"></a>00094         <span class="keyword">virtual</span> <span class="keywordtype">double</span> eval(<span class="keyword">const</span> vec &amp;val){}; 
     71<a name="l00095"></a>00095 }; 
     72<a name="l00096"></a>00096  
     73<a name="l00098"></a><a class="code" href="classmpdf.html">00098</a> <span class="keyword">class </span><a class="code" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> { 
     74<a name="l00100"></a>00100         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rv; 
     75<a name="l00102"></a>00102         <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> rvc; 
     76<a name="l00103"></a>00103 <span class="keyword">public</span>: 
     77<a name="l00104"></a>00104  
     78<a name="l00106"></a>00106 <span class="comment">//      virtual fnc moment ( const int order = 1 );</span> 
     79<a name="l00108"></a><a class="code" href="classmpdf.html#c20c796f8d0a201f0897299150e45a41">00108</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 &amp;cond, <span class="keywordtype">double</span> lik){}; 
     80<a name="l00109"></a>00109         <span class="keyword">virtual</span> <span class="keywordtype">void</span> condition (vec &amp;cond){}; 
     81<a name="l00110"></a>00110 }; 
     82<a name="l00111"></a>00111  
     83<a name="l00112"></a>00112 <span class="preprocessor">#endif // BM_H</span> 
     84</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Wed Jan 23 11:30:10 2008 for mixpp by&nbsp; 
    7585<a href="http://www.doxygen.org/index.html"> 
    7686<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>