[591] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 3 | <head> |
---|
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
---|
[259] | 5 | <title>mixpp: bdm::eDirich Class Reference</title> |
---|
[591] | 6 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
---|
| 7 | <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <!-- Generated by Doxygen 1.6.1 --> |
---|
[271] | 11 | <script type="text/javascript"> |
---|
| 12 | <!-- |
---|
| 13 | function changeDisplayState (e){ |
---|
| 14 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
| 15 | var button=this.firstChild; |
---|
| 16 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
| 17 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
| 18 | sectionDiv.style.display='block'; |
---|
| 19 | button.src='open.gif'; |
---|
| 20 | }else{ |
---|
| 21 | sectionDiv.style.display='none'; |
---|
| 22 | button.src='closed.gif'; |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | function initDynSections(){ |
---|
| 26 | var divs=document.getElementsByTagName('div'); |
---|
| 27 | var sectionCounter=1; |
---|
| 28 | for(var i=0;i<divs.length-1;i++){ |
---|
| 29 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
| 30 | var header=divs[i]; |
---|
| 31 | var section=divs[i+1]; |
---|
| 32 | var button=header.firstChild; |
---|
| 33 | if (button!='IMG'){ |
---|
| 34 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
| 35 | button=document.createElement('img'); |
---|
| 36 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
| 37 | } |
---|
| 38 | header.style.cursor='pointer'; |
---|
| 39 | header.onclick=changeDisplayState; |
---|
| 40 | header.id='dynheader'+sectionCounter; |
---|
| 41 | button.src='closed.gif'; |
---|
| 42 | section.id='dynsection'+sectionCounter; |
---|
| 43 | section.style.display='none'; |
---|
| 44 | section.style.marginLeft='14px'; |
---|
| 45 | sectionCounter++; |
---|
| 46 | } |
---|
| 47 | } |
---|
| 48 | } |
---|
| 49 | window.onload = initDynSections; |
---|
| 50 | --> |
---|
| 51 | </script> |
---|
[259] | 52 | <div class="navigation" id="top"> |
---|
| 53 | <div class="tabs"> |
---|
| 54 | <ul> |
---|
[271] | 55 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 56 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[290] | 57 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 58 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 59 | </ul> |
---|
| 60 | </div> |
---|
| 61 | <div class="tabs"> |
---|
| 62 | <ul> |
---|
| 63 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 64 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 65 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 66 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 67 | </ul> |
---|
| 68 | </div> |
---|
[271] | 69 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1eDirich.html">eDirich</a> |
---|
[259] | 70 | </div> |
---|
| 71 | </div> |
---|
| 72 | <div class="contents"> |
---|
[591] | 73 | <h1>bdm::eDirich Class Reference</h1><!-- doxytag: class="bdm::eDirich" --><!-- doxytag: inherits="bdm::eEF" --> |
---|
| 74 | <p>Dirichlet posterior density. |
---|
| 75 | <a href="#_details">More...</a></p> |
---|
[616] | 76 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 77 | <p>Dirichlet posterior density. </p> |
---|
| 78 | <p>Continuous Dirichlet density of <img class="formulaInl" alt="$n$" src="form_76.png"/>-dimensional variable <img class="formulaInl" alt="$x$" src="form_1.png"/> </p> |
---|
| 79 | <p class="formulaDsp"> |
---|
| 80 | <img class="formulaDsp" alt="\[ f(x|\beta) = \frac{\Gamma[\gamma]}{\prod_{i=1}^{n}\Gamma(\beta_i)} \prod_{i=1}^{n}x_i^{\beta_i-1} \]" src="form_77.png"/> |
---|
| 81 | </p> |
---|
| 82 | <p> where <img class="formulaInl" alt="$\gamma=\sum_i \beta_i$" src="form_78.png"/>. </p> |
---|
[259] | 83 | |
---|
[591] | 84 | <p><code>#include <<a class="el" href="exp__family_8h_source.html">exp_family.h</a>></code></p> |
---|
[259] | 85 | |
---|
[591] | 86 | <p><a href="classbdm_1_1eDirich-members.html">List of all members.</a></p> |
---|
| 87 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
| 88 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
---|
| 89 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3290613d31d58daa8a45a54b003871fc"></a><!-- doxytag: member="bdm::eDirich::sample" ref="a3290613d31d58daa8a45a54b003871fc" args="() const " --> |
---|
| 90 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#a3290613d31d58daa8a45a54b003871fc">sample</a> () const </td></tr> |
---|
[608] | 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_3.png"/> from density <img class="formulaInl" alt="$ f_x()$" src="form_13.png"/>. <br/></td></tr> |
---|
[591] | 92 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb343355ec791298bb5a3404cd482fb6"></a><!-- doxytag: member="bdm::eDirich::mean" ref="acb343355ec791298bb5a3404cd482fb6" args="() const " --> |
---|
| 93 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#acb343355ec791298bb5a3404cd482fb6">mean</a> () const </td></tr> |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
---|
| 95 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43c547a2507e233706f92712d8c2aacc"></a><!-- doxytag: member="bdm::eDirich::variance" ref="a43c547a2507e233706f92712d8c2aacc" args="() const " --> |
---|
| 96 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#a43c547a2507e233706f92712d8c2aacc">variance</a> () const </td></tr> |
---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> |
---|
| 98 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae09a24938e80c3d94b0ee842d1552318"></a><!-- doxytag: member="bdm::eDirich::evallog_nn" ref="ae09a24938e80c3d94b0ee842d1552318" args="(const vec &val) const " --> |
---|
| 99 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#ae09a24938e80c3d94b0ee842d1552318">evallog_nn</a> (const vec &val) const </td></tr> |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">In this instance, val is ... <br/></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a279a99f6266c82fe2273e83841f19eb2"></a><!-- doxytag: member="bdm::eDirich::lognc" ref="a279a99f6266c82fe2273e83841f19eb2" args="() const " --> |
---|
| 102 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#a279a99f6266c82fe2273e83841f19eb2">lognc</a> () const </td></tr> |
---|
[608] | 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">logarithm of the normalizing constant, <img class="formulaInl" alt="$\mathcal{I}$" src="form_97.png"/> <br/></td></tr> |
---|
[591] | 104 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a175e0add26d2105c28d8121eefb9e324"></a><!-- doxytag: member="bdm::eDirich::_beta" ref="a175e0add26d2105c28d8121eefb9e324" args="()" --> |
---|
| 105 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#a175e0add26d2105c28d8121eefb9e324">_beta</a> ()</td></tr> |
---|
| 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
---|
| 107 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa36d06ecdd6f4c79dc122510eaccc692"></a><!-- doxytag: member="bdm::eDirich::evallog" ref="aa36d06ecdd6f4c79dc122510eaccc692" args="(const vec &val) const " --> |
---|
| 108 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#aa36d06ecdd6f4c79dc122510eaccc692">evallog</a> (const vec &val) const </td></tr> |
---|
| 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability. <br/></td></tr> |
---|
| 110 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6886c60b6b690e503913240db5de0c6f"></a><!-- doxytag: member="bdm::eDirich::evallog_m" ref="a6886c60b6b690e503913240db5de0c6f" args="(const mat &Val) const " --> |
---|
| 111 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#a6886c60b6b690e503913240db5de0c6f">evallog_m</a> (const mat &Val) const </td></tr> |
---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br/></td></tr> |
---|
| 113 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad793f4fd6d0dcec5f16bff0ae45fc7d5"></a><!-- doxytag: member="bdm::eDirich::evallog_m" ref="ad793f4fd6d0dcec5f16bff0ae45fc7d5" args="(const Array< vec > &Val) const " --> |
---|
| 114 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#ad793f4fd6d0dcec5f16bff0ae45fc7d5">evallog_m</a> (const Array< vec > &Val) const </td></tr> |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br/></td></tr> |
---|
| 116 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf38af29e8e3d650c640509a52396053"></a><!-- doxytag: member="bdm::eDirich::pow" ref="acf38af29e8e3d650c640509a52396053" args="(double p)" --> |
---|
| 117 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#acf38af29e8e3d650c640509a52396053">pow</a> (double p)</td></tr> |
---|
| 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Power of the density, used e.g. to flatten the density. <br/></td></tr> |
---|
| 119 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> |
---|
[608] | 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Load from structure with elements:. <a href="#afa9efc98a065b31c630fe18cc418f725"></a><br/></td></tr> |
---|
[591] | 121 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::eDirich::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 122 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
---|
| 124 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::eDirich::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 125 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
---|
| 127 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::eDirich::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 128 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
---|
[271] | 130 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
[591] | 131 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> </p> |
---|
| 132 | <br/><br/></div></td></tr> |
---|
| 133 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5137485050ca8d67549b514896f602d"></a><!-- doxytag: member="bdm::eDirich::eDirich" ref="ad5137485050ca8d67549b514896f602d" args="()" --> |
---|
[271] | 134 | </td><td class="memItemRight" valign="bottom"><b>eDirich</b> ()</td></tr> |
---|
[591] | 135 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31cc8bf709552c9e7286ac16b27c8e2c"></a><!-- doxytag: member="bdm::eDirich::eDirich" ref="a31cc8bf709552c9e7286ac16b27c8e2c" args="(const eDirich &D0)" --> |
---|
[271] | 136 | </td><td class="memItemRight" valign="bottom"><b>eDirich</b> (const <a class="el" href="classbdm_1_1eDirich.html">eDirich</a> &D0)</td></tr> |
---|
[591] | 137 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa961f5846c8db5b2d20e7db483453e0c"></a><!-- doxytag: member="bdm::eDirich::eDirich" ref="aa961f5846c8db5b2d20e7db483453e0c" args="(const vec &beta0)" --> |
---|
[271] | 138 | </td><td class="memItemRight" valign="bottom"><b>eDirich</b> (const vec &beta0)</td></tr> |
---|
[591] | 139 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa06af2376976a33e1eceaed7e8da75a5"></a><!-- doxytag: member="bdm::eDirich::set_parameters" ref="aa06af2376976a33e1eceaed7e8da75a5" args="(const vec &beta0)" --> |
---|
[271] | 140 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (const vec &beta0)</td></tr> |
---|
| 141 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
[591] | 142 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> Construction of each <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> should support two types of constructors: </p> |
---|
| 143 | <ul> |
---|
[271] | 144 | <li>empty constructor, </li> |
---|
| 145 | <li>copy constructor,</li> |
---|
| 146 | </ul> |
---|
[591] | 147 | <p>The following constructors should be supported for convenience: </p> |
---|
| 148 | <ul> |
---|
[271] | 149 | <li>constructor followed by calling <code>set_parameters()</code> </li> |
---|
[591] | 150 | <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> |
---|
[271] | 151 | </ul> |
---|
[591] | 152 | <p>All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code>set_parameters()</code>. This way references can be initialized in constructors. </p> |
---|
| 153 | <br/><br/></div></td></tr> |
---|
| 154 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::eDirich::set_parameters" ref="a840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> |
---|
[271] | 155 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
[270] | 156 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
[591] | 157 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> |
---|
| 158 | <br/><br/></div></td></tr> |
---|
| 159 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::eDirich::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
| 160 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
---|
[608] | 161 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png"/>. <br/></td></tr> |
---|
[591] | 162 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::eDirich::condition" ref="a1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &rv) const " --> |
---|
| 163 | virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a1499d35b79bce0cfa64fc5cafb9c03b2">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
| 164 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br/></td></tr> |
---|
| 165 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::eDirich::marginal" ref="aa84b05f5293cab2aeb4e07faffa60906" args="(const RV &rv) const " --> |
---|
| 166 | virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa84b05f5293cab2aeb4e07faffa60906">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
| 167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br/></td></tr> |
---|
| 168 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::eDirich::qbounds" ref="a0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
---|
| 169 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &lb, vec &ub, double percentage=0.95) const </td></tr> |
---|
| 170 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br/></td></tr> |
---|
[270] | 171 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
[608] | 172 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp14fc6e1cb822e9dfc5edc16c20fabe11"></a>Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: </p> |
---|
[591] | 173 | <br/><br/></div></td></tr> |
---|
| 174 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::eDirich::set_rv" ref="af423e28448dbb69ef4905295ec8de8ff" args="(const RV &rv0)" --> |
---|
| 175 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
---|
| 176 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br/></td></tr> |
---|
| 177 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::eDirich::isnamed" ref="ac4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
| 178 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
| 179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br/></td></tr> |
---|
| 180 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::eDirich::_rv" ref="aa4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
| 181 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> |
---|
| 182 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br/></td></tr> |
---|
[270] | 183 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
[591] | 184 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> |
---|
| 185 | <br/><br/></div></td></tr> |
---|
| 186 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::eDirich::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
| 187 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
| 188 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br/></td></tr> |
---|
| 189 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
---|
| 190 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af25886a49b4667af61245de81c83b5d2"></a><!-- doxytag: member="bdm::eDirich::beta" ref="af25886a49b4667af61245de81c83b5d2" args="" --> |
---|
| 191 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eDirich.html#af25886a49b4667af61245de81c83b5d2">beta</a></td></tr> |
---|
| 192 | <tr><td class="mdescLeft"> </td><td class="mdescRight">sufficient statistics <br/></td></tr> |
---|
| 193 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::eDirich::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
| 194 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
| 195 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br/></td></tr> |
---|
| 196 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::eDirich::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
| 197 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
---|
| 198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br/></td></tr> |
---|
[259] | 199 | </table> |
---|
[591] | 200 | <hr/><h2>Member Function Documentation</h2> |
---|
| 201 | <a class="anchor" id="afa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::eDirich::from_setting" ref="afa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
---|
[396] | 202 | <div class="memitem"> |
---|
| 203 | <div class="memproto"> |
---|
| 204 | <table class="memname"> |
---|
| 205 | <tr> |
---|
[591] | 206 | <td class="memname">void bdm::epdf::from_setting </td> |
---|
[396] | 207 | <td>(</td> |
---|
| 208 | <td class="paramtype">const Setting & </td> |
---|
[591] | 209 | <td class="paramname"> <em>set</em></td> |
---|
[396] | 210 | <td> ) </td> |
---|
| 211 | <td><code> [inline, virtual, inherited]</code></td> |
---|
| 212 | </tr> |
---|
| 213 | </table> |
---|
[259] | 214 | </div> |
---|
[396] | 215 | <div class="memdoc"> |
---|
[608] | 216 | |
---|
| 217 | <p>Load from structure with elements:. </p> |
---|
| 218 | <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> |
---|
| 219 | <span class="comment">// elements of offsprings</span> |
---|
| 220 | } |
---|
[396] | 221 | </pre></div> |
---|
[591] | 222 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
[396] | 223 | |
---|
[608] | 224 | <p>Reimplemented in <a class="el" href="classbdm_1_1mexEpdf.html#af371482ea8d21c8ac01f011b3d942298">bdm::mexEpdf</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#a55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#a8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#a77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#a10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#a9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p> |
---|
[396] | 225 | |
---|
[614] | 226 | <p>References <a class="el" href="bdmbase_8h_source.html#l00416">bdm::epdf::set_rv()</a>.</p> |
---|
[396] | 227 | |
---|
| 228 | </div> |
---|
[397] | 229 | </div> |
---|
[591] | 230 | <hr/>The documentation for this class was generated from the following file:<ul> |
---|
| 231 | <li><a class="el" href="exp__family_8h_source.html">exp_family.h</a></li> |
---|
| 232 | </ul> |
---|
| 233 | </div> |
---|
[616] | 234 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 13 23:08:56 2009 for mixpp by |
---|
[259] | 235 | <a href="http://www.doxygen.org/index.html"> |
---|
[591] | 236 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
---|
[259] | 237 | </body> |
---|
| 238 | </html> |
---|