Show
Ignore:
Timestamp:
06/24/09 21:57:21 (16 years ago)
Author:
smidl
Message:

doc 2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/exp__family_8h-source.html

    r397 r398  
    7777<a name="l00025"></a>00025         <span class="keyword">extern</span> Uniform_RNG UniRNG; 
    7878<a name="l00027"></a>00027         <span class="keyword">extern</span> Normal_RNG NorRNG; 
    79 <a name="l00029"></a>00029         <span class="keyword">extern</span> Gamma_RNG GamRNG; 
     79<a name="l00029"></a>00029         <span class="keyword">extern</span> <a class="code" href="classitpp_1_1Gamma__RNG.html" title="Gamma distribution.">Gamma_RNG</a> GamRNG; 
    8080<a name="l00030"></a>00030  
    8181<a name="l00037"></a><a class="code" href="classbdm_1_1eEF.html">00037</a>         <span class="keyword">class </span><a class="code" href="classbdm_1_1eEF.html" title="General conjugate exponential family posterior density.">eEF</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> 
     
    167167<a name="l00163"></a>00163  
    168168<a name="l00164"></a>00164         }; 
    169 <a name="l00165"></a>00165         UIREGISTER(enorm&lt;chmat&gt;); 
    170 <a name="l00166"></a>00166         UIREGISTER(enorm&lt;ldmat&gt;); 
    171 <a name="l00167"></a>00167         UIREGISTER(enorm&lt;fsqmat&gt;); 
     169<a name="l00165"></a>00165         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(enorm&lt;chmat&gt;); 
     170<a name="l00166"></a>00166         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(enorm&lt;ldmat&gt;); 
     171<a name="l00167"></a>00167         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(enorm&lt;fsqmat&gt;); 
    172172<a name="l00168"></a>00168  
    173173<a name="l00169"></a>00169  
     
    223223<a name="l00237"></a>00237                                 <span class="keyword">set</span>.lookupValue(<span class="stringliteral">"dimx"</span>,<a class="code" href="classbdm_1_1egiw.html#23e4d78bea7e98840f3da30e76a2b57a" title="Dimension of the output.">dimx</a>); 
    224224<a name="l00238"></a>00238                                 mat V; 
    225 <a name="l00239"></a>00239                                 UI::get(V,<span class="keyword">set</span>,<span class="stringliteral">"V"</span>); 
     225<a name="l00239"></a>00239                                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(V,<span class="keyword">set</span>,<span class="stringliteral">"V"</span>); 
    226226<a name="l00240"></a>00240                                 set_parameters(<a class="code" href="classbdm_1_1egiw.html#23e4d78bea7e98840f3da30e76a2b57a" title="Dimension of the output.">dimx</a>, V, <a class="code" href="classbdm_1_1egiw.html#447eacf19d4f4083872686f044814dc4" title="Number of data records (degrees of freedom) of sufficient statistics.">nu</a>); 
    227227<a name="l00241"></a>00241                                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>* <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>=UI::build&lt;RV&gt;(<span class="keyword">set</span>,<span class="stringliteral">"rv"</span>); 
     
    230230<a name="l00244"></a>00244                         } 
    231231<a name="l00246"></a>00246         }; 
    232 <a name="l00247"></a>00247         UIREGISTER(egiw); 
     232<a name="l00247"></a>00247         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(egiw); 
    233233<a name="l00248"></a>00248  
    234234<a name="l00257"></a><a class="code" href="classbdm_1_1eDirich.html">00257</a>         <span class="keyword">class </span><a class="code" href="classbdm_1_1eDirich.html" title="Dirichlet posterior density.">eDirich</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1eEF.html" title="General conjugate exponential family posterior density.">eEF</a> 
     
    340340<a name="l00400"></a><a class="code" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">00400</a>                         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">from_setting</a>(<span class="keyword">const</span> Setting &amp;<span class="keyword">set</span>){ 
    341341<a name="l00401"></a>00401                                 <a class="code" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">epdf::from_setting</a>(<span class="keyword">set</span>); <span class="comment">// reads rv</span> 
    342 <a name="l00402"></a>00402                                 UI::get(<a class="code" href="classbdm_1_1egamma.html#0901ec983e66b8337aaa506e13b122fa" title="Vector .">alpha</a>,<span class="keyword">set</span>,<span class="stringliteral">"alpha"</span>); 
    343 <a name="l00403"></a>00403                                 UI::get(beta,<span class="keyword">set</span>,<span class="stringliteral">"beta"</span>); 
     342<a name="l00402"></a>00402                                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(<a class="code" href="classbdm_1_1egamma.html#0901ec983e66b8337aaa506e13b122fa" title="Vector .">alpha</a>,<span class="keyword">set</span>,<span class="stringliteral">"alpha"</span>); 
     343<a name="l00403"></a>00403                                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(beta,<span class="keyword">set</span>,<span class="stringliteral">"beta"</span>); 
    344344<a name="l00404"></a>00404                                 <a class="code" href="classbdm_1_1egamma.html#c3a8d8ae8ba79d0fb35036711fa7d127" title="This method TODO.">validate</a>(); 
    345345<a name="l00405"></a>00405                         } 
     
    349349<a name="l00409"></a>00409                         } 
    350350<a name="l00410"></a>00410         }; 
    351 <a name="l00411"></a>00411 UIREGISTER(egamma); 
     351<a name="l00411"></a>00411 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(egamma); 
    352352<a name="l00428"></a><a class="code" href="classbdm_1_1eigamma.html">00428</a>         <span class="keyword">class </span><a class="code" href="classbdm_1_1eigamma.html" title="Inverse-Gamma posterior density.">eigamma</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1egamma.html" title="Gamma posterior density.">egamma</a> 
    353353<a name="l00429"></a>00429         { 
     
    409409<a name="l00510"></a><a class="code" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">00510</a>                         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">from_setting</a>(<span class="keyword">const</span> Setting &amp;<span class="keyword">set</span>){ 
    410410<a name="l00511"></a>00511                                 <a class="code" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">epdf::from_setting</a>(<span class="keyword">set</span>); <span class="comment">// reads rv and rvc</span> 
    411 <a name="l00512"></a>00512                                 UI::get(<a class="code" href="classbdm_1_1euni.html#cfad2dea4a62db6872bda8abd75f0de1" title="upper bound on support">high</a>,<span class="keyword">set</span>,<span class="stringliteral">"high"</span>); 
    412 <a name="l00513"></a>00513                                 UI::get(<a class="code" href="classbdm_1_1euni.html#ff7ce6a2ef5ef0015bbd1398bed12f32" title="lower bound on support">low</a>,<span class="keyword">set</span>,<span class="stringliteral">"low"</span>); 
     411<a name="l00512"></a>00512                                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(<a class="code" href="classbdm_1_1euni.html#cfad2dea4a62db6872bda8abd75f0de1" title="upper bound on support">high</a>,<span class="keyword">set</span>,<span class="stringliteral">"high"</span>); 
     412<a name="l00513"></a>00513                                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(<a class="code" href="classbdm_1_1euni.html#ff7ce6a2ef5ef0015bbd1398bed12f32" title="lower bound on support">low</a>,<span class="keyword">set</span>,<span class="stringliteral">"low"</span>); 
    413413<a name="l00514"></a>00514                         } 
    414414<a name="l00515"></a>00515         }; 
     
    461461<a name="l00607"></a>00607                                 { 
    462462<a name="l00608"></a>00608                                         vec dR; 
    463 <a name="l00609"></a>00609                                         UI::get( dR, <span class="keyword">set</span>, <span class="stringliteral">"dR"</span> ); 
     463<a name="l00609"></a>00609                                         <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>( dR, <span class="keyword">set</span>, <span class="stringliteral">"dR"</span> ); 
    464464<a name="l00610"></a>00610                                         R=diag(dR); 
    465465<a name="l00611"></a>00611                                 } 
    466466<a name="l00612"></a>00612                                 <span class="keywordflow">else</span>  
    467 <a name="l00613"></a>00613                                         UI::get( R, <span class="keyword">set</span>, <span class="stringliteral">"R"</span>);                                   
     467<a name="l00613"></a>00613                                         <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>( R, <span class="keyword">set</span>, <span class="stringliteral">"R"</span>);                                   
    468468<a name="l00614"></a>00614                  
    469469<a name="l00615"></a>00615                                 <a class="code" href="classbdm_1_1mgnorm.html#578e02458e2a0d17f3864826b6ebd564" title="set mean function">set_parameters</a>(g,R); 
     
    482482<a name="l00628"></a>00628         }; 
    483483<a name="l00629"></a>00629  
    484 <a name="l00630"></a>00630         UIREGISTER(mgnorm&lt;chmat&gt;); 
     484<a name="l00630"></a>00630         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(mgnorm&lt;chmat&gt;); 
    485485<a name="l00631"></a>00631  
    486486<a name="l00632"></a>00632  
     
    537537<a name="l00713"></a>00713                                 <a class="code" href="classbdm_1_1mgamma.html#da2af0f327e5452bee71d1bf97452ae4">mpdf::from_setting</a>(<span class="keyword">set</span>); <span class="comment">// reads rv and rvc</span> 
    538538<a name="l00714"></a>00714                                 vec betatmp; <span class="comment">// ugly but necessary</span> 
    539 <a name="l00715"></a>00715                                 UI::get(betatmp,<span class="keyword">set</span>,<span class="stringliteral">"beta"</span>); 
     539<a name="l00715"></a>00715                                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(betatmp,<span class="keyword">set</span>,<span class="stringliteral">"beta"</span>); 
    540540<a name="l00716"></a>00716                                 <span class="keyword">set</span>.lookupValue(<span class="stringliteral">"k"</span>,<a class="code" href="classbdm_1_1mgamma.html#b20cf88cca1fe9b0b8f2a412608bfd09" title="Constant .">k</a>); 
    541541<a name="l00717"></a>00717                                 <a class="code" href="classbdm_1_1mgamma.html#a0f21c2557b233a85838b497d040ab14" title="Set value of k.">set_parameters</a>(<a class="code" href="classbdm_1_1mgamma.html#b20cf88cca1fe9b0b8f2a412608bfd09" title="Constant .">k</a>,betatmp); 
    542542<a name="l00718"></a>00718                         } 
    543543<a name="l00719"></a>00719         }; 
    544 <a name="l00720"></a>00720         UIREGISTER(mgamma); 
     544<a name="l00720"></a>00720         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(mgamma); 
    545545<a name="l00721"></a>00721          
    546546<a name="l00731"></a><a class="code" href="classbdm_1_1migamma.html">00731</a>         <span class="keyword">class </span><a class="code" href="classbdm_1_1migamma.html" title="Inverse-Gamma random walk.">migamma</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1mEF.html" title="Exponential family model.">mEF</a> 
     
    614614<a name="l00858"></a>00858  
    615615<a name="l00859"></a>00859  
    616 <a name="l00860"></a>00860         UIREGISTER(migamma_ref); 
     616<a name="l00860"></a>00860         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(migamma_ref); 
    617617<a name="l00861"></a>00861  
    618618<a name="l00871"></a><a class="code" href="classbdm_1_1elognorm.html">00871</a>         <span class="keyword">class </span><a class="code" href="classbdm_1_1elognorm.html">elognorm</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1enorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix.">enorm</a>&lt;ldmat&gt; 
     
    651651<a name="l00937"></a>00937         }; 
    652652<a name="l00938"></a>00938          
    653 <a name="l00939"></a>00939         UIREGISTER(mlognorm); 
     653<a name="l00939"></a>00939         <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(mlognorm); 
    654654<a name="l00940"></a>00940  
    655655<a name="l00944"></a><a class="code" href="classbdm_1_1eWishartCh.html">00944</a>         <span class="keyword">class </span><a class="code" href="classbdm_1_1eWishartCh.html">eWishartCh</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> 
     
    668668<a name="l00960"></a>00960                                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i=0;i&lt;<a class="code" href="classbdm_1_1eWishartCh.html#b745c73faef785009484180582050a1f" title="dimension of matrix ">p</a>;i++ ) 
    669669<a name="l00961"></a>00961                                 { 
    670 <a name="l00962"></a>00962                                         GamRNG.setup ( 0.5* ( <a class="code" href="classbdm_1_1eWishartCh.html#1879a14d7d2bb05062523b189baa11c3" title="degrees of freedom ">delta</a>-i ) , 0.5 ); <span class="comment">// no +1 !! index if from 0</span> 
     670<a name="l00962"></a>00962                                         GamRNG.<a class="code" href="classitpp_1_1Gamma__RNG.html#dfaae19411e39aa87e1f72e409b6babe" title="Set lambda.">setup</a> ( 0.5* ( <a class="code" href="classbdm_1_1eWishartCh.html#1879a14d7d2bb05062523b189baa11c3" title="degrees of freedom ">delta</a>-i ) , 0.5 ); <span class="comment">// no +1 !! index if from 0</span> 
    671671<a name="l00963"></a>00963 <span class="preprocessor">#pragma omp critical</span> 
    672672<a name="l00964"></a>00964 <span class="preprocessor"></span>                                        X ( i,i ) =sqrt ( GamRNG() ); 
     
    841841<a name="l01163"></a>01163                 <a class="code" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">epdf::from_setting</a>(<span class="keyword">set</span>); <span class="comment">//reads rv</span> 
    842842<a name="l01164"></a>01164                  
    843 <a name="l01165"></a>01165                 UI::get(<a class="code" href="classbdm_1_1enorm.html#c702a194720853570d08b65482f842c7" title="mean value">mu</a>,<span class="keyword">set</span>,<span class="stringliteral">"mu"</span>); 
     843<a name="l01165"></a>01165                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(<a class="code" href="classbdm_1_1enorm.html#c702a194720853570d08b65482f842c7" title="mean value">mu</a>,<span class="keyword">set</span>,<span class="stringliteral">"mu"</span>); 
    844844<a name="l01166"></a>01166                 mat Rtmp;<span class="comment">// necessary for conversion</span> 
    845 <a name="l01167"></a>01167                 UI::get(Rtmp,<span class="keyword">set</span>,<span class="stringliteral">"R"</span>); 
     845<a name="l01167"></a>01167                 <a class="code" href="classbdm_1_1UI.html#652bfd23f5052e4f1cb317057d74a3e2" title="The existing instance of type T is initialized with values stored in the Setting...">UI::get</a>(Rtmp,<span class="keyword">set</span>,<span class="stringliteral">"R"</span>); 
    846846<a name="l01168"></a>01168                 <a class="code" href="classbdm_1_1enorm.html#2d92dde696b2a7a5b10ddef5d22ba2c2" title="Covariance matrix in decomposed form.">R</a>=Rtmp; <span class="comment">// conversion</span> 
    847847<a name="l01169"></a>01169                 <a class="code" href="classbdm_1_1enorm.html#38eb17ecb75d94a50b6782fcf735cfea" title="This method TODO.">validate</a>(); 
     
    10201020<a name="l01343"></a>01343 <span class="preprocessor">#endif //EF_H</span> 
    10211021</pre></div></div> 
    1022 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 23 19:52:49 2009 for mixpp by&nbsp; 
     1022<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 24 21:53:04 2009 for mixpp by&nbsp; 
    10231023<a href="http://www.doxygen.org/index.html"> 
    10241024<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>