| 55 |  | <a name="l0007 7"></a>00077         <a class="code" href="classMixEF.html#7713c2f01e97df268049821749405bc2" title="Full constructor.">MixEF</a> ( <a class="code" href="classBMEF.html" title="Estimator for Exponential family.">BMEF</a>* Com0, <span class="keyword">const</span> mat &Data, <span class="keywordtype">int</span> c=5 ); | 
                        | 56 |  | <a name="l0007 8"></a>00078         <span class="comment">//Destructor</span> | 
                        | 57 |  | <a name="l0007 9"></a>00079         ~<a class="code" href="classMixEF.html" title="Mixture of Exponential Family Densities.">MixEF</a>() { | 
                        | 58 |  | <a name="l00080"></a>00080         <span class="keyword">delete</span> <a class="code" href="classMixEF.html#33968f1325137cc6f4431f0cf05096dc" title="Posterior on component parameters.">est</a>; | 
                        | 59 |  | <a name="l00081"></a>00081         <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<<a class="code" href="classMixEF.html#e9cc9bb3e6da801455cec99a59aea149" title="Number of components.">n</a>;i++ ) {<span class="keyword">delete</span> <a class="code" href="classMixEF.html#4c4a140ca4e6e71b00237b7bc754302e" title="Models for Components of .">Coms</a> ( i );} | 
                        | 60 |  | <a name="l00082"></a>00082 } | 
                        | 61 |  | <a name="l0008 4"></a>00084         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#d520fb534aa43f3084ff1568ffe7573d" title="Recursive EM-like algorithm (QB-variant), see Karny et. al, 2006.">bayes</a> ( <span class="keyword">const</span> vec &dt ); | 
                        | 62 |  | <a name="l0008 6"></a>00086         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#d520fb534aa43f3084ff1568ffe7573d" title="Recursive EM-like algorithm (QB-variant), see Karny et. al, 2006.">bayes</a> ( <span class="keyword">const</span> mat &dt ); | 
                        | 63 |  | <a name="l0008 7"></a>00087         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#e6810daa121ccaff1ac18f26fbad4563" title="Batch Bayes rule (columns of Dt are observations).">bayesB</a> ( <span class="keyword">const</span> mat &dt ); | 
                        | 64 |  | <a name="l0008 8"></a>00088         <span class="keywordtype">double</span> <a class="code" href="classMixEF.html#424ca64f36d4e41de7a7e7ae921d35ea">logpred</a> ( <span class="keyword">const</span> vec &dt ) <span class="keyword">const</span>; | 
                        | 65 |  | <a name="l00089"></a> <a class="code" href="classMixEF.html#efb3e20c2151d91c4fc080b7722a2069">00089</a>         <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& <a class="code" href="classMixEF.html#efb3e20c2151d91c4fc080b7722a2069" title="Returns a pointer to the epdf representing posterior density on parameters. Use with...">_epdf</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> *<a class="code" href="classMixEF.html#33968f1325137cc6f4431f0cf05096dc" title="Posterior on component parameters.">est</a>;} | 
                        | 66 |  | <a name="l00090"></a>00090 }; | 
                        | 67 |  | <a name="l00091"></a>00091  | 
                        | 68 |  | <a name="l00092"></a> 00092  | 
                        | 69 |  | <a name="l00093"></a>00093 <span class="preprocessor">#endif // MEF_H</span> | 
                        | 70 |  | <a name="l00094"></a>00094 <span class="preprocessor"></span> | 
                      
                        |  | 55 | <a name="l00073"></a>00073         <a class="code" href="classMixEF.html" title="Mixture of Exponential Family Densities.">MixEF</a> () : | 
                        |  | 56 | <a name="l00074"></a>00074                         <a class="code" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a> ( <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>() ), <a class="code" href="classMixEF.html#e9cc9bb3e6da801455cec99a59aea149" title="Number of components.">n</a> ( 0 ), <a class="code" href="classMixEF.html#4c4a140ca4e6e71b00237b7bc754302e" title="Models for Components of .">Coms</a> ( 0 ), | 
                        |  | 57 | <a name="l00075"></a>00075                         <a class="code" href="classMixEF.html#d906782a0a9558f19150dc69411f717f" title="Statistics for weights.">weights</a> ( <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"{w }"</span>, vec_1 ( 0 ) ),vec ( 0 ) ) {<a class="code" href="classMixEF.html#5ae381b3a7dfbe2c1e5bb579a5d9b9d1" title="Auxiliary function for use in constructors.">build_est</a>();} | 
                        |  | 58 | <a name="l00080"></a>00080         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#73a782d2f464c830bbdbb03d34c6d63e">init</a> ( <a class="code" href="classBMEF.html" title="Estimator for Exponential family.">BMEF</a>* Com0, <span class="keyword">const</span> mat &Data, <span class="keywordtype">int</span> c=5 ); | 
                        |  | 59 | <a name="l00081"></a>00081         <span class="comment">//Destructor</span> | 
                        |  | 60 | <a name="l00082"></a>00082         ~<a class="code" href="classMixEF.html" title="Mixture of Exponential Family Densities.">MixEF</a>() { | 
                        |  | 61 | <a name="l00083"></a>00083                 <span class="keyword">delete</span> <a class="code" href="classMixEF.html#33968f1325137cc6f4431f0cf05096dc" title="Posterior on component parameters.">est</a>; | 
                        |  | 62 | <a name="l00084"></a>00084                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i<<a class="code" href="classMixEF.html#e9cc9bb3e6da801455cec99a59aea149" title="Number of components.">n</a>;i++ ) {<span class="keyword">delete</span> <a class="code" href="classMixEF.html#4c4a140ca4e6e71b00237b7bc754302e" title="Models for Components of .">Coms</a> ( i );} | 
                        |  | 63 | <a name="l00085"></a>00085         } | 
                        |  | 64 | <a name="l00087"></a>00087         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#d520fb534aa43f3084ff1568ffe7573d" title="Recursive EM-like algorithm (QB-variant), see Karny et. al, 2006.">bayes</a> ( <span class="keyword">const</span> vec &dt ); | 
                        |  | 65 | <a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#d520fb534aa43f3084ff1568ffe7573d" title="Recursive EM-like algorithm (QB-variant), see Karny et. al, 2006.">bayes</a> ( <span class="keyword">const</span> mat &dt ); | 
                        |  | 66 | <a name="l00090"></a>00090         <span class="keywordtype">void</span> <a class="code" href="classMixEF.html#e6810daa121ccaff1ac18f26fbad4563" title="Batch Bayes rule (columns of Dt are observations).">bayesB</a> ( <span class="keyword">const</span> mat &dt ); | 
                        |  | 67 | <a name="l00091"></a>00091         <span class="keywordtype">double</span> <a class="code" href="classMixEF.html#424ca64f36d4e41de7a7e7ae921d35ea">logpred</a> ( <span class="keyword">const</span> vec &dt ) <span class="keyword">const</span>; | 
                        |  | 68 | <a name="l00092"></a><a class="code" href="classMixEF.html#efb3e20c2151d91c4fc080b7722a2069">00092</a>         <span class="keyword">const</span> <a class="code" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>& <a class="code" href="classMixEF.html#efb3e20c2151d91c4fc080b7722a2069" title="Returns a pointer to the epdf representing posterior density on parameters. Use with...">_epdf</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> *<a class="code" href="classMixEF.html#33968f1325137cc6f4431f0cf05096dc" title="Posterior on component parameters.">est</a>;} | 
                        |  | 69 | <a name="l00093"></a>00093 }; | 
                        |  | 70 | <a name="l00094"></a>00094 |